Class: Temando::Item::GeneralGoods
- Defined in:
- lib/temando/item/general_goods.rb
Overview
A GeneralGood is a type of item that can be shipped by Temando.
Instance Attribute Summary collapse
-
#pallet_nature ⇒ Object
Returns the value of attribute pallet_nature.
-
#pallet_type ⇒ Object
Returns the value of attribute pallet_type.
-
#shipping_packaging ⇒ Object
Returns the value of attribute shipping_packaging.
Attributes inherited from Base
#description, #height, #length, #packaging_optimization, #quantity, #weight, #width
Instance Method Summary collapse
- #fragile ⇒ Object
-
#initialize(attributes = {}) ⇒ GeneralGoods
constructor
A new instance of GeneralGoods.
- #shipping_class ⇒ Object
- #shipping_subclass ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ GeneralGoods
Returns a new instance of GeneralGoods.
7 8 9 10 |
# File 'lib/temando/item/general_goods.rb', line 7 def initialize(attributes={}) @shipping_packaging = 'Parcel' super end |
Instance Attribute Details
#pallet_nature ⇒ Object
Returns the value of attribute pallet_nature.
5 6 7 |
# File 'lib/temando/item/general_goods.rb', line 5 def pallet_nature @pallet_nature end |
#pallet_type ⇒ Object
Returns the value of attribute pallet_type.
5 6 7 |
# File 'lib/temando/item/general_goods.rb', line 5 def pallet_type @pallet_type end |
#shipping_packaging ⇒ Object
Returns the value of attribute shipping_packaging.
5 6 7 |
# File 'lib/temando/item/general_goods.rb', line 5 def shipping_packaging @shipping_packaging end |
Instance Method Details
#fragile ⇒ Object
20 21 22 |
# File 'lib/temando/item/general_goods.rb', line 20 def fragile false end |
#shipping_class ⇒ Object
12 13 14 |
# File 'lib/temando/item/general_goods.rb', line 12 def shipping_class 'General Goods' end |
#shipping_subclass ⇒ Object
16 17 18 |
# File 'lib/temando/item/general_goods.rb', line 16 def shipping_subclass 'Household Goods' end |