Class: Temando::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/temando/location.rb

Overview

A Temando::Location represents address and contact details for pickup or delivery of a shipment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Location

Returns a new instance of Location.



7
8
9
10
11
# File 'lib/temando/location.rb', line 7

def initialize(attributes={})
  attributes.each do |key, value|
    self.send("#{key}=".intern, value)
  end
end

Instance Attribute Details

#companyObject

Returns the value of attribute company.



5
6
7
# File 'lib/temando/location.rb', line 5

def company
  @company
end

#contactObject

Returns the value of attribute contact.



5
6
7
# File 'lib/temando/location.rb', line 5

def contact
  @contact
end

#countryObject

Returns the value of attribute country.



5
6
7
# File 'lib/temando/location.rb', line 5

def country
  @country
end

#emailObject

Returns the value of attribute email.



5
6
7
# File 'lib/temando/location.rb', line 5

def email
  @email
end

#phone1Object

Returns the value of attribute phone1.



5
6
7
# File 'lib/temando/location.rb', line 5

def phone1
  @phone1
end

#phone2Object

Returns the value of attribute phone2.



5
6
7
# File 'lib/temando/location.rb', line 5

def phone2
  @phone2
end

#postcodeObject

Returns the value of attribute postcode.



5
6
7
# File 'lib/temando/location.rb', line 5

def postcode
  @postcode
end

#stateObject

Returns the value of attribute state.



5
6
7
# File 'lib/temando/location.rb', line 5

def state
  @state
end

#streetObject

Returns the value of attribute street.



5
6
7
# File 'lib/temando/location.rb', line 5

def street
  @street
end

#suburbObject

Returns the value of attribute suburb.



5
6
7
# File 'lib/temando/location.rb', line 5

def suburb
  @suburb
end