Class: Spree::CatalogOrderMinimum

Inherits:
Object
  • Object
show all
Defined in:
app/models/spree/catalog_order_minimum.rb

Overview

The least a whole order must come to under a catalog's agreement, in one currency. Born per currency — one row each — because Spree holds no exchange rates and a threshold converted at read time is a different promise every day.

Instance Method Summary collapse

Instance Method Details

#display_amount ⇒ Spree::Money

Returns:



22
23
24
# File 'app/models/spree/catalog_order_minimum.rb', line 22

def display_amount
  Spree::Money.new(amount, currency: currency)
end