Class: Spree::Stock::Allocator::Base
- Inherits:
-
Object
- Object
- Spree::Stock::Allocator::Base
- Defined in:
- app/models/spree/stock/allocator/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#availability ⇒ Object
readonly
Returns the value of attribute availability.
Instance Method Summary collapse
- #allocate_inventory(_desired) ⇒ Object
-
#initialize(availability) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(availability) ⇒ Base
Returns a new instance of Base.
9 10 11 |
# File 'app/models/spree/stock/allocator/base.rb', line 9 def initialize(availability) @availability = availability end |
Instance Attribute Details
#availability ⇒ Object (readonly)
Returns the value of attribute availability.
7 8 9 |
# File 'app/models/spree/stock/allocator/base.rb', line 7 def availability @availability end |
Instance Method Details
#allocate_inventory(_desired) ⇒ Object
13 14 15 |
# File 'app/models/spree/stock/allocator/base.rb', line 13 def allocate_inventory(_desired) raise NotImplementedError end |