Exception: Spree::Order::InsufficientStock

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = nil, items: {})
  @items = items
  super message
end

Instance Attribute Details

#itemsObject (readonly)

Returns the value of attribute items.


31
32
33
# File 'app/models/spree/order.rb', line 31

def items
  @items
end