Class: ShippingAddress
- Inherits:
-
Object
- Object
- ShippingAddress
- Defined in:
- lib/objects/shipping_address.rb
Overview
This object represents a shipping address
Instance Method Summary collapse
-
#city ⇒ Object
City.
-
#country_code ⇒ Object
ISO 3166-1 alpha-2 country code.
-
#initialize(shipping) ⇒ ShippingAddress
constructor
:nodoc:.
-
#post_code ⇒ Object
Address post code.
-
#state ⇒ Object
State, if applicable.
-
#street_line1 ⇒ Object
First line for the address.
-
#street_line2 ⇒ Object
Second line for the address.
Constructor Details
#initialize(shipping) ⇒ ShippingAddress
:nodoc:
6 7 8 |
# File 'lib/objects/shipping_address.rb', line 6 def initialize(shipping) # :nodoc: @shipping = shipping end |
Instance Method Details
#city ⇒ Object
City
21 22 23 |
# File 'lib/objects/shipping_address.rb', line 21 def city @shipping.city end |
#country_code ⇒ Object
ISO 3166-1 alpha-2 country code.
11 12 13 |
# File 'lib/objects/shipping_address.rb', line 11 def country_code @shipping.country_code end |
#post_code ⇒ Object
Address post code
36 37 38 |
# File 'lib/objects/shipping_address.rb', line 36 def post_code @shipping.post_code end |
#state ⇒ Object
State, if applicable.
16 17 18 |
# File 'lib/objects/shipping_address.rb', line 16 def state @shipping.state end |
#street_line1 ⇒ Object
First line for the address.
26 27 28 |
# File 'lib/objects/shipping_address.rb', line 26 def street_line1 @shipping.street_lin2 end |
#street_line2 ⇒ Object
Second line for the address
31 32 33 |
# File 'lib/objects/shipping_address.rb', line 31 def street_line2 @shipping.street_line2 end |