Class: FriendlyShipping::Services::ShipEngineLTL::ItemOptions

Inherits:
ItemOptions
  • Object
show all
Defined in:
lib/friendly_shipping/services/ship_engine_ltl/item_options.rb

Instance Attribute Summary collapse

Attributes inherited from ItemOptions

#item_id

Instance Method Summary collapse

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_classObject (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_materialsObject (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_codeObject (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_codeObject (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

#stackableObject (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