class JSONAPI::Consumer::KeyFormatter

Public Class Methods

format(key) click to toggle source
Calls superclass method JSONAPI::Consumer::Formatter::format
# File lib/jsonapi/consumer/formatter.rb, line 25
def format(key)
  super
end
format_keys(hash) click to toggle source
# File lib/jsonapi/consumer/formatter.rb, line 29
def format_keys(hash)
  Hash[
    hash.map do |key, value|
      [format(key).to_sym, value]
    end
  ]
end
unformat(formatted_key) click to toggle source
Calls superclass method JSONAPI::Consumer::Formatter::unformat
# File lib/jsonapi/consumer/formatter.rb, line 37
def unformat(formatted_key)
  super
end