Sha256: aca8fdef095b6217496dc6e9f3cfdcd007ce00b9a9d41db8380db3fe43128324

Contents?: true

Size: 194 Bytes

Versions: 2

Compression:

Stored size: 194 Bytes

Contents

Spree::Calculator::Shipping::PriceSack.class_eval do

  def compute_package(package)
    response = compute_from_price(total(package.contents))
    {cost: response, delivery_time: nil}
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
spree_zaez_tnt_mercurio-3.0.2 app/models/spree/calculator/shipping/price_sack_decorator.rb
spree_zaez_correios-3.0.3 app/models/spree/calculator/shipping/price_sack_decorator.rb