Sha256: 3fbf13741109592c755a495b91a79348f67981823d0280d07447c641a6236e73

Contents?: true

Size: 371 Bytes

Versions: 29

Compression:

Stored size: 371 Bytes

Contents

module Spree
  module V2
    module Storefront
      class WishlistSerializer < BaseSerializer
        set_type :wishlist

        attributes :token, :name, :is_private, :is_default

        attribute :variant_included do |wishlist, params|
          wishlist.include?(params[:is_variant_included])
        end

        has_many :wished_items
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
atkhayar-dev-spree-api-0.0.1 app/serializers/spree/v2/storefront/wishlist_serializer.rb
atkhayar-dev-spree-api-0.0.0 app/serializers/spree/v2/storefront/wishlist_serializer.rb
atkhayar-spree-dev-api-0.0.0 app/serializers/spree/v2/storefront/wishlist_serializer.rb
spree_api-4.5.2 app/serializers/spree/v2/storefront/wishlist_serializer.rb
spree_api-4.5.1 app/serializers/spree/v2/storefront/wishlist_serializer.rb
spree_api-4.5.0 app/serializers/spree/v2/storefront/wishlist_serializer.rb
spree_api-4.4.0 app/serializers/spree/v2/storefront/wishlist_serializer.rb
spree_api-4.4.0.rc2 app/serializers/spree/v2/storefront/wishlist_serializer.rb
spree_api-4.4.0.rc1 app/serializers/spree/v2/storefront/wishlist_serializer.rb