Class: SupplejackApi::SourceAuthoritySerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Defined in:
app/serializers/supplejack_api/source_authority_serializer.rb

Instance Method Summary collapse

Instance Method Details

#serializable_hashObject



16
17
18
19
20
21
# File 'app/serializers/supplejack_api/source_authority_serializer.rb', line 16

def serializable_hash
  hash = {}
  hash['@type'] = object.concept_type
  hash = hash.merge!(attributes)
  hash
end