Method: JsonApiClient::KeyFormatter.format_keys

Defined in:
lib/json_api_client/formatter.rb

.format_keys(hash) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/json_api_client/formatter.rb', line 31

def format_keys(hash)
  Hash[
    hash.map do |key, value|
      [format(key).to_sym, value]
    end
  ]
end