Sha256: 3839885a8cb64f542bcfd2502a4906a1fb0a7bd272ce7a13bf3aaeb28eb63fba

Contents?: true

Size: 299 Bytes

Versions: 2

Compression:

Stored size: 299 Bytes

Contents

module Spree
  module Api
    module V2
      module Platform
        class ImageSerializer < BaseSerializer
          set_type :image

          attributes :styles, :position, :alt, :created_at, :updated_at

          belongs_to :viewable, polymorphic: true
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_api-4.3.0.rc2 app/serializers/spree/api/v2/platform/image_serializer.rb
spree_api-4.3.0.rc1 app/serializers/spree/api/v2/platform/image_serializer.rb