Class: JsonApiClient::DasherizedRouteFormatter
- Inherits:
-
RouteFormatter
- Object
- Formatter
- RouteFormatter
- JsonApiClient::DasherizedRouteFormatter
- Defined in:
- lib/json_api_client/formatter.rb
Class Method Summary collapse
Methods inherited from Formatter
Class Method Details
.format(route) ⇒ Object
135 136 137 |
# File 'lib/json_api_client/formatter.rb', line 135 def format(route) super.dasherize end |
.unformat(formatted_route) ⇒ Object
139 140 141 |
# File 'lib/json_api_client/formatter.rb', line 139 def unformat(formatted_route) formatted_route.to_s.underscore end |