Class: Temando::Item::GeneralGoods

Inherits:
Base
  • Object
show all
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

Attributes inherited from Base

#description, #height, #length, #packaging_optimization, #quantity, #weight, #width

Instance Method Summary collapse

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_natureObject

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_typeObject

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_packagingObject

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

#fragileObject



20
21
22
# File 'lib/temando/item/general_goods.rb', line 20

def fragile
  false
end

#shipping_classObject



12
13
14
# File 'lib/temando/item/general_goods.rb', line 12

def shipping_class
  'General Goods'
end

#shipping_subclassObject



16
17
18
# File 'lib/temando/item/general_goods.rb', line 16

def shipping_subclass
  'Household Goods'
end