Sha256: 89e4eec304f898894f2eabc0c5e58605735f1c216f3975fbef491b692153e964

Contents?: true

Size: 292 Bytes

Versions: 8

Compression:

Stored size: 292 Bytes

Contents

module Spree
  class VariantSerializer < Spree::BaseSerializer
    attributes :sku, :weight, :height, :width, :depth, :is_master, :position,
               :name, :price, :display_price

    has_many :prices
    has_many :option_values
    has_many :images

    belongs_to :product
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
solidus_json_api-0.3.1 app/serializers/spree/variant_serializer.rb
solidus_json_api-0.3.0 app/serializers/spree/variant_serializer.rb
spree_api_v2-0.2.2 app/serializers/spree/variant_serializer.rb
solidus_api_v2-0.2.2 app/serializers/spree/variant_serializer.rb
solidus_api_v2-0.2.1 app/serializers/spree/variant_serializer.rb
spree_api_v2-0.2.1 app/serializers/spree/variant_serializer.rb
spree_api_v2-0.2.0 app/serializers/spree/variant_serializer.rb
solidus_api_v2-0.2.0 app/serializers/spree/variant_serializer.rb