class JSONAPI::ValueFormatter
Public Class Methods
format(raw_value)
click to toggle source
Calls superclass method
JSONAPI::Formatter::format
# File lib/jsonapi/formatter.rb, line 52 def format(raw_value) super(raw_value) end
unformat(value)
click to toggle source
Calls superclass method
JSONAPI::Formatter::unformat
# File lib/jsonapi/formatter.rb, line 56 def unformat(value) super(value) end
value_formatter_for(type)
click to toggle source
# File lib/jsonapi/formatter.rb, line 60 def value_formatter_for(type) "#{type.to_s.camelize}ValueFormatter".safe_constantize end