Class: JsonApiClient::DasherizedKeyFormatter
- Inherits:
-
KeyFormatter
- Object
- Formatter
- KeyFormatter
- JsonApiClient::DasherizedKeyFormatter
- Defined in:
- lib/json_api_client/formatter.rb
Class Method Summary collapse
Methods inherited from KeyFormatter
Methods inherited from Formatter
Class Method Details
.format(key) ⇒ Object
91 92 93 |
# File 'lib/json_api_client/formatter.rb', line 91 def format(key) super.dasherize end |
.unformat(formatted_key) ⇒ Object
95 96 97 |
# File 'lib/json_api_client/formatter.rb', line 95 def unformat(formatted_key) formatted_key.to_s.underscore end |