Class: DasherizedKeyFormatter
- Inherits:
-
JSONAPI::KeyFormatter
- Object
- JSONAPI::Formatter
- JSONAPI::KeyFormatter
- DasherizedKeyFormatter
- 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
111 112 113 |
# File 'lib/jsonapi/formatter.rb', line 111 def format(_key) super.underscore.dasherize end |
.unformat(formatted_key) ⇒ Object
115 116 117 |
# File 'lib/jsonapi/formatter.rb', line 115 def unformat(formatted_key) formatted_key.to_s.underscore end |