Sha256: 1a4d4acf6e8c306848b6b6b36a8b7f536e29918a25f5bc6b5c10cb2329a88d1f

Contents?: true

Size: 306 Bytes

Versions: 4

Compression:

Stored size: 306 Bytes

Contents

module Spree
  class BaseSerializer < ActiveModel::Serializer
    def image_links(object)
      {
        original: object.url(:original),
        mini: object.url(:mini),
        small: object.url(:small),
        product: object.url(:product),
        large: object.url(:large)
      }
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
solidus_api_v2-0.2.1 app/serializers/spree/base_serializer.rb
spree_api_v2-0.2.1 app/serializers/spree/base_serializer.rb
spree_api_v2-0.2.0 app/serializers/spree/base_serializer.rb
solidus_api_v2-0.2.0 app/serializers/spree/base_serializer.rb