Class: JSONAPI::Store::Entity

Inherits:
Identifier
  • Object
show all
Defined in:
lib/jsonapi/store/entity.rb

Overview

Basic entity implementation for JSONAPI::Store

Instance Method Summary collapse

Methods inherited from Identifier

#id, #identifier, #type

Instance Method Details

#attributesHash

Returns attributes of the entity.

Returns:

  • (Hash)

    attributes of the entity



12
# File 'lib/jsonapi/store/entity.rb', line 12

attribute :attributes, Types::Optional::Hash

#relationshipsHash

Returns relationships of the entity.

Returns:

  • (Hash)

    relationships of the entity



14
# File 'lib/jsonapi/store/entity.rb', line 14

attribute :relationships, Types::Optional::Hash