Class: JSONAPI::Consumer::IdValueFormatter

Inherits:
ValueFormatter show all
Defined in:
lib/jsonapi/consumer/formatter.rb

Class Method Summary collapse

Methods inherited from ValueFormatter

unformat, value_formatter_for

Methods inherited from Formatter

formatter_for, unformat

Class Method Details

.format(raw_value) ⇒ Object



109
110
111
112
# File 'lib/jsonapi/consumer/formatter.rb', line 109

def format(raw_value)
  return if raw_value.nil?
  raw_value.to_s
end