Class: PensioAPI::BillingAddress
- Inherits:
-
Object
- Object
- PensioAPI::BillingAddress
- Defined in:
- lib/pensio_api/billing_address.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#first_name ⇒ Object
readonly
Returns the value of attribute first_name.
-
#last_name ⇒ Object
readonly
Returns the value of attribute last_name.
-
#postal_code ⇒ Object
readonly
Returns the value of attribute postal_code.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
-
#street_address ⇒ Object
readonly
Returns the value of attribute street_address.
Instance Method Summary collapse
-
#initialize(address_params) ⇒ BillingAddress
constructor
A new instance of BillingAddress.
Constructor Details
#initialize(address_params) ⇒ BillingAddress
Returns a new instance of BillingAddress.
5 6 7 8 9 10 11 12 13 |
# File 'lib/pensio_api/billing_address.rb', line 5 def initialize(address_params) @first_name = address_params['Firstname'] @last_name = address_params['Lastname'] @street_address = address_params['Address'] @city = address_params['City'] @region = address_params['Region'] @postal_code = address_params['PostalCode'] @country = address_params['Country'] end |
Instance Attribute Details
#city ⇒ Object (readonly)
Returns the value of attribute city.
3 4 5 |
# File 'lib/pensio_api/billing_address.rb', line 3 def city @city end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
3 4 5 |
# File 'lib/pensio_api/billing_address.rb', line 3 def country @country end |
#first_name ⇒ Object (readonly)
Returns the value of attribute first_name.
3 4 5 |
# File 'lib/pensio_api/billing_address.rb', line 3 def first_name @first_name end |
#last_name ⇒ Object (readonly)
Returns the value of attribute last_name.
3 4 5 |
# File 'lib/pensio_api/billing_address.rb', line 3 def last_name @last_name end |
#postal_code ⇒ Object (readonly)
Returns the value of attribute postal_code.
3 4 5 |
# File 'lib/pensio_api/billing_address.rb', line 3 def postal_code @postal_code end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
3 4 5 |
# File 'lib/pensio_api/billing_address.rb', line 3 def region @region end |
#street_address ⇒ Object (readonly)
Returns the value of attribute street_address.
3 4 5 |
# File 'lib/pensio_api/billing_address.rb', line 3 def street_address @street_address end |