Class: ItemBuilderMwh::Modes::Create::Base
- Inherits:
-
Object
- Object
- ItemBuilderMwh::Modes::Create::Base
- Defined in:
- lib/item_builder_mwh/modes/create/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#item_listing ⇒ Object
readonly
Returns the value of attribute item_listing.
-
#shipping_providers ⇒ Object
readonly
Returns the value of attribute shipping_providers.
Instance Method Summary collapse
-
#initialize(item_listing, shipping_providers) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(item_listing, shipping_providers) ⇒ Base
Returns a new instance of Base.
10 11 12 13 14 15 16 17 |
# File 'lib/item_builder_mwh/modes/create/base.rb', line 10 def initialize(item_listing, shipping_providers) raise 'item listing is not set' if item_listing.nil? raise 'shipping providers is not set' if shipping_providers.nil? @item_listing = item_listing @shipping_providers = shipping_providers end |
Instance Attribute Details
#item_listing ⇒ Object (readonly)
Returns the value of attribute item_listing.
7 8 9 |
# File 'lib/item_builder_mwh/modes/create/base.rb', line 7 def item_listing @item_listing end |
#shipping_providers ⇒ Object (readonly)
Returns the value of attribute shipping_providers.
8 9 10 |
# File 'lib/item_builder_mwh/modes/create/base.rb', line 8 def shipping_providers @shipping_providers end |