class JSONAPI::Consumer::ValueFormatter
Public Class Methods
format(raw_value)
click to toggle source
Calls superclass method
JSONAPI::Consumer::Formatter::format
# File lib/jsonapi/consumer/formatter.rb, line 57 def format(raw_value) super(raw_value) end
unformat(value)
click to toggle source
Calls superclass method
JSONAPI::Consumer::Formatter::unformat
# File lib/jsonapi/consumer/formatter.rb, line 61 def unformat(value) super(value) end
value_formatter_for(type)
click to toggle source
# File lib/jsonapi/consumer/formatter.rb, line 65 def value_formatter_for(type) formatter_name = "#{type.to_s.camelize}Value" formatter_for(formatter_name) end