Class: SupplejackApi::ConceptRecordSerializer
- Inherits:
-
ActiveModel::Serializer
- Object
- ActiveModel::Serializer
- SupplejackApi::ConceptRecordSerializer
- Defined in:
- app/serializers/supplejack_api/concept_record_serializer.rb
Constant Summary collapse
- TYPE_PROXY =
'edm:ProvidedCHO'
Instance Method Summary collapse
Instance Method Details
#serializable_hash ⇒ Object
15 16 17 18 19 20 21 |
# File 'app/serializers/supplejack_api/concept_record_serializer.rb', line 15 def serializable_hash hash = {} hash['@id'] = "http://#{ENV['WWW_DOMAIN']}/records/#{object.record_id}" hash['@type'] = TYPE_PROXY hash = hash.merge!(attributes) hash end |