Module: Aitch::Utils
Constant Summary collapse
- MATCHER =
/(?<=.)(URI|[A-Z])/
Instance Method Summary collapse
Instance Method Details
#build_query(data) ⇒ Object
23 24 25 |
# File 'lib/aitch/utils.rb', line 23 def build_query(data) data.to_query end |
#symbolize_keys(hash) ⇒ Object
17 18 19 20 21 |
# File 'lib/aitch/utils.rb', line 17 def symbolize_keys(hash) hash.each_with_object({}) do |(key, value), buffer| buffer[key.to_sym] = value end end |