Class: JSONAPI::Consumer::CamelizedRouteFormatter

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



121
122
123
# File 'lib/jsonapi/consumer/formatter.rb', line 121

def format(route)
  super.camelize(:lower)
end

.unformat(formatted_route) ⇒ Object



125
126
127
# File 'lib/jsonapi/consumer/formatter.rb', line 125

def unformat(formatted_route)
  formatted_route.to_s.underscore
end