Class: JSONAPI::ValueFormatter
Class Method Summary
collapse
Methods inherited from Formatter
cached, formatter_for, uncached
Class Method Details
[View source]
52
53
54
|
# File 'lib/jsonapi/formatter.rb', line 52
def format(raw_value)
super(raw_value)
end
|
[View source]
56
57
58
|
# File 'lib/jsonapi/formatter.rb', line 56
def unformat(value)
super(value)
end
|
[View source]
60
61
62
|
# File 'lib/jsonapi/formatter.rb', line 60
def value_formatter_for(type)
"#{type.to_s.camelize}ValueFormatter".safe_constantize
end
|