Class: JsonApiClient::CamelizedKeyFormatter
- Inherits:
-
KeyFormatter
- Object
- Formatter
- KeyFormatter
- JsonApiClient::CamelizedKeyFormatter
- 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
79 80 81 |
# File 'lib/json_api_client/formatter.rb', line 79 def format(key) super.camelize(:lower) end |
.unformat(formatted_key) ⇒ Object
83 84 85 |
# File 'lib/json_api_client/formatter.rb', line 83 def unformat(formatted_key) formatted_key.to_s.underscore end |