Class: OEmbed::CreatorSerializer

Inherits:
ApplicationSerializer show all
Defined in:
app/serializers/o_embed/creator_serializer.rb

Instance Method Summary collapse

Methods inherited from ApplicationSerializer

#author_properties, #generic_properties, #initialize, #link_properties, #model_file_properties, #photo_properties, #renderable_properties, #video_properties

Constructor Details

This class inherits a constructor from OEmbed::ApplicationSerializer

Instance Method Details

#serialize ⇒ Object



3
4
5
6
7
8
9
10
# File 'app/serializers/o_embed/creator_serializer.rb', line 3

def serialize
  {
    title: @object.name
  }.merge(
    generic_properties,
    link_properties
  )
end