class Comet::RatelimitRule

def to_hash

Returns:
  • (Hash) - The complete object as a Ruby hash
def to_hash
  ret = {}
  ret['MatchRegex'] = @match_regex
  ret['BytesPerSecond'] = @bytes_per_second
  @unknown_json_fields.each do |k, v|
    ret[k] = v
  end
  ret
end