Class: Temando::Delivery::Base
- Inherits:
-
Object
- Object
- Temando::Delivery::Base
- Defined in:
- lib/temando/delivery/base.rb
Overview
A Temando::Delivery::Base represents ways of shipping items.
The Temando API refers to a delivery action as an “Anywhere”.
This is a base class for the delivery mechanisms, Temando::Delivery::DoorToDoor and Temando::Delivery::DepotToDepot
Direct Known Subclasses
Instance Attribute Summary collapse
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#origin ⇒ Object
Returns the value of attribute origin.
Instance Method Summary collapse
-
#initialize(origin = nil, destination = nil) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(origin = nil, destination = nil) ⇒ Base
Returns a new instance of Base.
13 14 15 16 |
# File 'lib/temando/delivery/base.rb', line 13 def initialize(origin = nil, destination = nil) self.origin = origin self.destination = destination end |
Instance Attribute Details
#destination ⇒ Object
Returns the value of attribute destination.
11 12 13 |
# File 'lib/temando/delivery/base.rb', line 11 def destination @destination end |
#origin ⇒ Object
Returns the value of attribute origin.
11 12 13 |
# File 'lib/temando/delivery/base.rb', line 11 def origin @origin end |