Class: Chronicle::Serialization::JSONAPISerializer

Inherits:
Serializer
  • Object
show all
Defined in:
lib/chronicle/serialization/jsonapi_serializer.rb

Instance Method Summary collapse

Methods inherited from Serializer

#initialize, serialize

Constructor Details

This class inherits a constructor from Chronicle::Serialization::Serializer

Instance Method Details

#serializable_hashObject



4
5
6
# File 'lib/chronicle/serialization/jsonapi_serializer.rb', line 4

def serializable_hash
  { data: serialize_record(@record) }
end