Class: SimpleShipping::Address
- Inherits:
-
SimpleShipping::Abstract::Model
- Object
- SimpleShipping::Abstract::Model
- SimpleShipping::Address
- Defined in:
- lib/simple_shipping/address.rb
Overview
Represents an address information of party.
Attributes:
-
country_code
-
state_code
-
city
-
street_line
-
street_line_2
-
street_line_3
-
postal_code
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#country_code ⇒ Object
Returns the value of attribute country_code.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#state_code ⇒ Object
Returns the value of attribute state_code.
-
#street_line ⇒ Object
Returns the value of attribute street_line.
-
#street_line_2 ⇒ Object
Returns the value of attribute street_line_2.
-
#street_line_3 ⇒ Object
Returns the value of attribute street_line_3.
Method Summary
Methods inherited from SimpleShipping::Abstract::Model
#initialize, set_default_values, validates_submodel
Constructor Details
This class inherits a constructor from SimpleShipping::Abstract::Model
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
12 13 14 |
# File 'lib/simple_shipping/address.rb', line 12 def city @city end |
#country_code ⇒ Object
Returns the value of attribute country_code.
12 13 14 |
# File 'lib/simple_shipping/address.rb', line 12 def country_code @country_code end |
#postal_code ⇒ Object
Returns the value of attribute postal_code.
12 13 14 |
# File 'lib/simple_shipping/address.rb', line 12 def postal_code @postal_code end |
#state_code ⇒ Object
Returns the value of attribute state_code.
12 13 14 |
# File 'lib/simple_shipping/address.rb', line 12 def state_code @state_code end |
#street_line ⇒ Object
Returns the value of attribute street_line.
12 13 14 |
# File 'lib/simple_shipping/address.rb', line 12 def street_line @street_line end |
#street_line_2 ⇒ Object
Returns the value of attribute street_line_2.
12 13 14 |
# File 'lib/simple_shipping/address.rb', line 12 def street_line_2 @street_line_2 end |
#street_line_3 ⇒ Object
Returns the value of attribute street_line_3.
12 13 14 |
# File 'lib/simple_shipping/address.rb', line 12 def street_line_3 @street_line_3 end |