Class: JSONAPI::Consumer::DasherizedRouteFormatter

Inherits:
RouteFormatter show all
Defined in:
lib/jsonapi/consumer/formatter.rb

Class Method Summary collapse

Methods inherited from Formatter

formatter_for

Class Method Details

.format(route) ⇒ Object



133
134
135
# File 'lib/jsonapi/consumer/formatter.rb', line 133

def format(route)
  super.dasherize
end

.unformat(formatted_route) ⇒ Object



137
138
139
# File 'lib/jsonapi/consumer/formatter.rb', line 137

def unformat(formatted_route)
  formatted_route.to_s.underscore
end