Sha256: 113d9833cd82e7dd2573ce5fa39003f04faffb76642a904d2e6cacc6074ecbef
Contents?: true
Size: 775 Bytes
Versions: 29
Compression:
Stored size: 775 Bytes
Contents
module Spree module Api module V2 module Platform class WishedItemSerializer < BaseSerializer include ResourceSerializerConcern attribute :price do |wished_item, params| wished_item.price(currency: params[:currency]) end attribute :total do |wished_item, params| wished_item.total(currency: params[:currency]) end attribute :display_price do |wished_item, params| wished_item.display_price(currency: params[:currency]).to_s end attribute :display_total do |wished_item, params| wished_item.display_total(currency: params[:currency]).to_s end belongs_to :variant end end end end end
Version data entries
29 entries across 29 versions & 3 rubygems