Class: CamelizedRouteFormatter

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

Class Method Summary collapse

Methods inherited from JSONAPI::Formatter

cached, formatter_for, uncached

Class Method Details

.format(_route) ⇒ Object



149
150
151
# File 'lib/jsonapi/formatter.rb', line 149

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

.unformat(formatted_route) ⇒ Object



153
154
155
# File 'lib/jsonapi/formatter.rb', line 153

def unformat(formatted_route)
  formatted_route.to_s.underscore
end