mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-12 09:53:37 +01:00
10 lines
215 B
Ruby
10 lines
215 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ImageSerializer < Panko::Serializer
|
|
attributes :type, :url, :mime
|
|
aliases mime: "mediaType"
|
|
|
|
def type = "Image"
|
|
def mime = object.content_type
|
|
def url = object.url
|
|
end
|