Class: IdValueFormatter

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

Class Method Summary collapse

Methods inherited from JSONAPI::ValueFormatter

unformat, value_formatter_for

Methods inherited from JSONAPI::Formatter

cached, formatter_for, unformat

Class Method Details

.format(raw_value) ⇒ Object


123
124
125
126
# File 'lib/jsonapi/formatter.rb', line 123

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