Class: Whitehouse::Order::Address
- Inherits:
-
Struct
- Object
- Struct
- Whitehouse::Order::Address
- Defined in:
- lib/whitehouse/order.rb
Instance Attribute Summary collapse
-
#addr1 ⇒ Object
Returns the value of attribute addr1.
-
#addr2 ⇒ Object
Returns the value of attribute addr2.
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#name ⇒ Object
Returns the value of attribute name.
-
#state ⇒ Object
Returns the value of attribute state.
-
#zip ⇒ Object
Returns the value of attribute zip.
Instance Method Summary collapse
Instance Attribute Details
#addr1 ⇒ Object
Returns the value of attribute addr1
39 40 41 |
# File 'lib/whitehouse/order.rb', line 39 def addr1 @addr1 end |
#addr2 ⇒ Object
Returns the value of attribute addr2
39 40 41 |
# File 'lib/whitehouse/order.rb', line 39 def addr2 @addr2 end |
#city ⇒ Object
Returns the value of attribute city
39 40 41 |
# File 'lib/whitehouse/order.rb', line 39 def city @city end |
#country ⇒ Object
Returns the value of attribute country
39 40 41 |
# File 'lib/whitehouse/order.rb', line 39 def country @country end |
#name ⇒ Object
Returns the value of attribute name
39 40 41 |
# File 'lib/whitehouse/order.rb', line 39 def name @name end |
#state ⇒ Object
Returns the value of attribute state
39 40 41 |
# File 'lib/whitehouse/order.rb', line 39 def state @state end |
#zip ⇒ Object
Returns the value of attribute zip
39 40 41 |
# File 'lib/whitehouse/order.rb', line 39 def zip @zip end |
Instance Method Details
#to_hash ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/whitehouse/order.rb', line 40 def to_hash {"Name" => name, "Addr1" => addr1, "Addr2" => addr2, "City" => city, "State" => state, "Zip" => zip, "Country" => country || 'US' } end |