Class: Temando::Delivery::Base

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

DoorToDoor

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#destinationObject

Returns the value of attribute destination.



11
12
13
# File 'lib/temando/delivery/base.rb', line 11

def destination
  @destination
end

#originObject

Returns the value of attribute origin.



11
12
13
# File 'lib/temando/delivery/base.rb', line 11

def origin
  @origin
end