Class: JsonApiClient::CamelizedRouteFormatter
- Inherits:
-
RouteFormatter
- Object
- Formatter
- RouteFormatter
- JsonApiClient::CamelizedRouteFormatter
- Defined in:
- lib/json_api_client/formatter.rb
Class Method Summary collapse
Methods inherited from Formatter
Class Method Details
.format(route) ⇒ Object
123 124 125 |
# File 'lib/json_api_client/formatter.rb', line 123 def format(route) super.camelize(:lower) end |
.unformat(formatted_route) ⇒ Object
127 128 129 |
# File 'lib/json_api_client/formatter.rb', line 127 def unformat(formatted_route) formatted_route.to_s.underscore end |