Method: JSONAPI::CachedResponseFragment#to_cache_value
- Defined in:
- lib/jsonapi/cached_response_fragment.rb
#to_cache_value ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/jsonapi/cached_response_fragment.rb', line 61 def to_cache_value { id: id, type: type, fetchable: fetchable_fields, rels: relationships, links: links_json.try(:to_s), attrs: attributes_json.try(:to_s), meta: .try(:to_s) } end |