Class: FriendlyShipping::Services::ShipEngineLTL::ItemOptions Deprecated
- Inherits:
-
ItemOptions
- Object
- ItemOptions
- FriendlyShipping::Services::ShipEngineLTL::ItemOptions
- Defined in:
- lib/friendly_shipping/services/ship_engine_ltl/item_options.rb
Overview
Deprecated.
Please use PackageOptions
instead.
Item options for rate quotes.
Instance Attribute Summary collapse
-
#freight_class ⇒ String
readonly
The freight class.
-
#hazardous_materials ⇒ Boolean
readonly
Whether the item contains hazardous materials.
-
#nmfc_code ⇒ String
readonly
The NMFC code.
-
#packaging_code ⇒ String
readonly
The packaging code.
-
#stackable ⇒ Boolean
readonly
Whether the item is 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.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/item_options.rb', line 31 def initialize( packaging_code: nil, freight_class: nil, nmfc_code: nil, stackable: true, hazardous_materials: false, **kwargs ) warn "[DEPRECATION] `ItemOptions` is deprecated. Please use `PackageOptions` instead." @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 ⇒ String (readonly)
Returns the freight class.
13 14 15 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/item_options.rb', line 13 def freight_class @freight_class end |
#hazardous_materials ⇒ Boolean (readonly)
Returns whether the item contains hazardous materials.
22 23 24 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/item_options.rb', line 22 def hazardous_materials @hazardous_materials end |
#nmfc_code ⇒ String (readonly)
Returns the NMFC code.
16 17 18 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/item_options.rb', line 16 def nmfc_code @nmfc_code end |
#packaging_code ⇒ String (readonly)
Returns the packaging code.
10 11 12 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/item_options.rb', line 10 def packaging_code @packaging_code end |
#stackable ⇒ Boolean (readonly)
Returns whether the item is stackable.
19 20 21 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/item_options.rb', line 19 def stackable @stackable end |