Class: CamelizedKeyFormatter
- Inherits:
-
JSONAPI::KeyFormatter
- Object
- JSONAPI::Formatter
- JSONAPI::KeyFormatter
- CamelizedKeyFormatter
- Defined in:
- lib/jsonapi/formatter.rb
Class Method Summary collapse
Methods inherited from JSONAPI::Formatter
cached, formatter_for, uncached
Class Method Details
.format(key) ⇒ Object
99 100 101 |
# File 'lib/jsonapi/formatter.rb', line 99 def format(key) super.camelize(:lower) end |
.unformat(formatted_key) ⇒ Object
103 104 105 |
# File 'lib/jsonapi/formatter.rb', line 103 def unformat(formatted_key) formatted_key.to_s.underscore end |