Class: FastSpring::Address
- Inherits:
-
Object
- Object
- FastSpring::Address
- Defined in:
- lib/fastspring-saasy/address.rb
Instance Attribute Summary collapse
-
#address_line_1 ⇒ Object
readonly
Returns the value of attribute address_line_1.
-
#address_line_2 ⇒ Object
readonly
Returns the value of attribute address_line_2.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#postal_code ⇒ Object
readonly
Returns the value of attribute postal_code.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
-
#region_custom ⇒ Object
readonly
Returns the value of attribute region_custom.
Instance Method Summary collapse
-
#initialize(options) ⇒ Address
constructor
A new instance of Address.
Constructor Details
#initialize(options) ⇒ Address
Returns a new instance of Address.
6 7 8 9 10 11 12 13 14 |
# File 'lib/fastspring-saasy/address.rb', line 6 def initialize() @address_line_1 = .fetch('addressLine1') @address_line_2 = .fetch('addressLine2') @city = .fetch('city') @region = .fetch('region') @region_custom = .fetch('regionCustom') @postal_code = .fetch('postalCode') @country = .fetch('country') end |
Instance Attribute Details
#address_line_1 ⇒ Object (readonly)
Returns the value of attribute address_line_1.
3 4 5 |
# File 'lib/fastspring-saasy/address.rb', line 3 def address_line_1 @address_line_1 end |
#address_line_2 ⇒ Object (readonly)
Returns the value of attribute address_line_2.
3 4 5 |
# File 'lib/fastspring-saasy/address.rb', line 3 def address_line_2 @address_line_2 end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
3 4 5 |
# File 'lib/fastspring-saasy/address.rb', line 3 def city @city end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
3 4 5 |
# File 'lib/fastspring-saasy/address.rb', line 3 def country @country end |
#postal_code ⇒ Object (readonly)
Returns the value of attribute postal_code.
3 4 5 |
# File 'lib/fastspring-saasy/address.rb', line 3 def postal_code @postal_code end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
3 4 5 |
# File 'lib/fastspring-saasy/address.rb', line 3 def region @region end |
#region_custom ⇒ Object (readonly)
Returns the value of attribute region_custom.
3 4 5 |
# File 'lib/fastspring-saasy/address.rb', line 3 def region_custom @region_custom end |