Class: Temando::Location
- Inherits:
-
Object
- Object
- Temando::Location
- 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
-
#company ⇒ Object
Returns the value of attribute company.
-
#contact ⇒ Object
Returns the value of attribute contact.
-
#country ⇒ Object
Returns the value of attribute country.
-
#email ⇒ Object
Returns the value of attribute email.
-
#phone1 ⇒ Object
Returns the value of attribute phone1.
-
#phone2 ⇒ Object
Returns the value of attribute phone2.
-
#postcode ⇒ Object
Returns the value of attribute postcode.
-
#state ⇒ Object
Returns the value of attribute state.
-
#street ⇒ Object
Returns the value of attribute street.
-
#suburb ⇒ Object
Returns the value of attribute suburb.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Location
constructor
A new instance of Location.
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
#company ⇒ Object
Returns the value of attribute company.
5 6 7 |
# File 'lib/temando/location.rb', line 5 def company @company end |
#contact ⇒ Object
Returns the value of attribute contact.
5 6 7 |
# File 'lib/temando/location.rb', line 5 def contact @contact end |
#country ⇒ Object
Returns the value of attribute country.
5 6 7 |
# File 'lib/temando/location.rb', line 5 def country @country end |
#email ⇒ Object
Returns the value of attribute email.
5 6 7 |
# File 'lib/temando/location.rb', line 5 def email @email end |
#phone1 ⇒ Object
Returns the value of attribute phone1.
5 6 7 |
# File 'lib/temando/location.rb', line 5 def phone1 @phone1 end |
#phone2 ⇒ Object
Returns the value of attribute phone2.
5 6 7 |
# File 'lib/temando/location.rb', line 5 def phone2 @phone2 end |
#postcode ⇒ Object
Returns the value of attribute postcode.
5 6 7 |
# File 'lib/temando/location.rb', line 5 def postcode @postcode end |
#state ⇒ Object
Returns the value of attribute state.
5 6 7 |
# File 'lib/temando/location.rb', line 5 def state @state end |
#street ⇒ Object
Returns the value of attribute street.
5 6 7 |
# File 'lib/temando/location.rb', line 5 def street @street end |
#suburb ⇒ Object
Returns the value of attribute suburb.
5 6 7 |
# File 'lib/temando/location.rb', line 5 def suburb @suburb end |