Method: JSONAPI::Resource#meta

Defined in:
lib/jsonapi/resource.rb

#meta(_options) ⇒ Object

Override this to return resource level meta data must return a hash, and if the hash is empty the meta section will not be serialized with the resource meta keys will be not be formatted with the key formatter for the serializer by default. They can however use the serializer’s format_key and format_value methods if desired the _options hash will contain the serializer and the serialization_options



155
156
157
# File 'lib/jsonapi/resource.rb', line 155

def meta(_options)
  {}
end