Class: IdValueFormatter
- Inherits:
-
JSONAPI::ValueFormatter
- Object
- JSONAPI::Formatter
- JSONAPI::ValueFormatter
- IdValueFormatter
- Defined in:
- lib/jsonapi/formatter.rb
Class Method Summary collapse
Methods inherited from JSONAPI::ValueFormatter
Methods inherited from JSONAPI::Formatter
cached, formatter_for, uncached, unformat
Class Method Details
.format(raw_value) ⇒ Object
137 138 139 140 |
# File 'lib/jsonapi/formatter.rb', line 137 def format(raw_value) return if raw_value.nil? raw_value.to_s end |