Class: PageImageExportSerializer

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

Instance Method Summary collapse

Instance Method Details

#alternativeObject


13
14
15
# File 'app/serializers/page_image_export_serializer.rb', line 13

def alternative
  object.image.alternative
end

#captionObject


17
18
19
# File 'app/serializers/page_image_export_serializer.rb', line 17

def caption
  object.image.caption
end

#content_hashObject


21
22
23
# File 'app/serializers/page_image_export_serializer.rb', line 21

def content_hash
  object.image.content_hash
end

#content_typeObject


25
26
27
# File 'app/serializers/page_image_export_serializer.rb', line 25

def content_type
  object.image.content_type
end

#created_atObject


37
38
39
# File 'app/serializers/page_image_export_serializer.rb', line 37

def created_at
  object.image.created_at
end

#filenameObject


29
30
31
# File 'app/serializers/page_image_export_serializer.rb', line 29

def filename
  object.image.filename
end

#idObject


5
6
7
# File 'app/serializers/page_image_export_serializer.rb', line 5

def id
  object.image.id
end

#nameObject


9
10
11
# File 'app/serializers/page_image_export_serializer.rb', line 9

def name
  object.image.name
end

#sizeObject


33
34
35
# File 'app/serializers/page_image_export_serializer.rb', line 33

def size
  object.image.crop_size
end