Exception: Spree::Order::InsufficientStock
- Inherits:
-
StandardError
- Object
- StandardError
- Spree::Order::InsufficientStock
- Defined in:
- app/models/spree/order.rb
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
Instance Method Summary collapse
-
#initialize(message = nil, items: {}) ⇒ InsufficientStock
constructor
A new instance of InsufficientStock.
Constructor Details
#initialize(message = nil, items: {}) ⇒ InsufficientStock
Returns a new instance of InsufficientStock.
33 34 35 36 |
# File 'app/models/spree/order.rb', line 33 def initialize( = nil, items: {}) @items = items super end |
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
31 32 33 |
# File 'app/models/spree/order.rb', line 31 def items @items end |