Class: Spree::Stock::Splitter::Base Private
- Inherits:
-
Object
- Object
- Spree::Stock::Splitter::Base
- Defined in:
- app/models/spree/stock/splitter/base.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
Instance Attribute Summary collapse
- #next_splitter ⇒ Object readonly private
- #packer ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(packer, next_splitter = nil) ⇒ Base
constructor
private
A new instance of Base.
- #split(packages) ⇒ Object private
Constructor Details
#initialize(packer, next_splitter = nil) ⇒ Base
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Base.
7 8 9 10 |
# File 'app/models/spree/stock/splitter/base.rb', line 7 def initialize(packer, next_splitter = nil) @packer = packer @next_splitter = next_splitter end |
Instance Attribute Details
#next_splitter ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 |
# File 'app/models/spree/stock/splitter/base.rb', line 5 def next_splitter @next_splitter end |
#packer ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 |
# File 'app/models/spree/stock/splitter/base.rb', line 5 def packer @packer end |
Instance Method Details
#split(packages) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'app/models/spree/stock/splitter/base.rb', line 13 def split(packages) return_next(packages) end |