Class: FriendlyShipping::Services::ShipEngineLTL::PackageOptions
- Inherits:
-
PackageOptions
- Object
- PackageOptions
- FriendlyShipping::Services::ShipEngineLTL::PackageOptions
- Defined in:
- lib/friendly_shipping/services/ship_engine_ltl/package_options.rb
Overview
Package options for rate quotes.
Instance Attribute Summary collapse
- #freight_class ⇒ String readonly
- #hazardous_materials ⇒ Boolean readonly
- #nmfc_code ⇒ String readonly
- #packaging_code ⇒ String readonly
- #stackable ⇒ Boolean readonly
Attributes inherited from PackageOptions
Instance Method Summary collapse
-
#initialize(packaging_code: nil, freight_class: nil, nmfc_code: nil, stackable: true, hazardous_materials: false, **kwargs) ⇒ PackageOptions
constructor
A new instance of PackageOptions.
Methods inherited from PackageOptions
Constructor Details
#initialize(packaging_code: nil, freight_class: nil, nmfc_code: nil, stackable: true, hazardous_materials: false, **kwargs) ⇒ PackageOptions
Returns a new instance of PackageOptions.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/package_options.rb', line 32 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.reverse_merge(item_options_class: ItemOptions)) end |
Instance Attribute Details
#freight_class ⇒ String (readonly)
12 13 14 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/package_options.rb', line 12 def freight_class @freight_class end |
#hazardous_materials ⇒ Boolean (readonly)
21 22 23 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/package_options.rb', line 21 def hazardous_materials @hazardous_materials end |
#nmfc_code ⇒ String (readonly)
15 16 17 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/package_options.rb', line 15 def nmfc_code @nmfc_code end |
#packaging_code ⇒ String (readonly)
9 10 11 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/package_options.rb', line 9 def packaging_code @packaging_code end |
#stackable ⇒ Boolean (readonly)
18 19 20 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/package_options.rb', line 18 def stackable @stackable end |