Class: ShippingAddress

Inherits:
Object
  • Object
show all
Defined in:
lib/objects/shipping_address.rb

Overview

This object represents a shipping address

Instance Method Summary collapse

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

#cityObject

City



21
22
23
# File 'lib/objects/shipping_address.rb', line 21

def city
  @shipping.city
end

#country_codeObject

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_codeObject

Address post code



36
37
38
# File 'lib/objects/shipping_address.rb', line 36

def post_code
  @shipping.post_code
end

#stateObject

State, if applicable.



16
17
18
# File 'lib/objects/shipping_address.rb', line 16

def state
  @shipping.state
end

#street_line1Object

First line for the address.



26
27
28
# File 'lib/objects/shipping_address.rb', line 26

def street_line1
  @shipping.street_lin2
end

#street_line2Object

Second line for the address



31
32
33
# File 'lib/objects/shipping_address.rb', line 31

def street_line2
  @shipping.street_line2
end