Class: FriendlyShipping::Services::ShipEngineLTL::ItemOptions
- Inherits:
-
ItemOptions
- Object
- ItemOptions
- FriendlyShipping::Services::ShipEngineLTL::ItemOptions
- Defined in:
- lib/friendly_shipping/services/ship_engine_ltl/item_options.rb
Instance Attribute Summary collapse
-
#freight_class ⇒ Object
readonly
Returns the value of attribute freight_class.
-
#hazardous_materials ⇒ Object
readonly
Returns the value of attribute hazardous_materials.
-
#nmfc_code ⇒ Object
readonly
Returns the value of attribute nmfc_code.
-
#packaging_code ⇒ Object
readonly
Returns the value of attribute packaging_code.
-
#stackable ⇒ Object
readonly
Returns the value of attribute stackable.
Attributes inherited from ItemOptions
Instance Method Summary collapse
-
#initialize(packaging_code: nil, freight_class: nil, nmfc_code: nil, stackable: true, hazardous_materials: false, **kwargs) ⇒ ItemOptions
constructor
A new instance of ItemOptions.
Constructor Details
#initialize(packaging_code: nil, freight_class: nil, nmfc_code: nil, stackable: true, hazardous_materials: false, **kwargs) ⇒ ItemOptions
Returns a new instance of ItemOptions.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/item_options.rb', line 13 def initialize( packaging_code: nil, freight_class: nil, nmfc_code: nil, stackable: true, hazardous_materials: false, **kwargs ) @packaging_code = packaging_code @freight_class = freight_class @nmfc_code = nmfc_code @stackable = stackable @hazardous_materials = hazardous_materials super(**kwargs) end |
Instance Attribute Details
#freight_class ⇒ Object (readonly)
Returns the value of attribute freight_class.
7 8 9 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/item_options.rb', line 7 def freight_class @freight_class end |
#hazardous_materials ⇒ Object (readonly)
Returns the value of attribute hazardous_materials.
7 8 9 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/item_options.rb', line 7 def hazardous_materials @hazardous_materials end |
#nmfc_code ⇒ Object (readonly)
Returns the value of attribute nmfc_code.
7 8 9 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/item_options.rb', line 7 def nmfc_code @nmfc_code end |
#packaging_code ⇒ Object (readonly)
Returns the value of attribute packaging_code.
7 8 9 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/item_options.rb', line 7 def packaging_code @packaging_code end |
#stackable ⇒ Object (readonly)
Returns the value of attribute stackable.
7 8 9 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/item_options.rb', line 7 def stackable @stackable end |