Class: PensioAPI::BillingAddress

Inherits:
Object
  • Object
show all
Defined in:
lib/pensio_api/billing_address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cityObject (readonly)

Returns the value of attribute city.



3
4
5
# File 'lib/pensio_api/billing_address.rb', line 3

def city
  @city
end

#countryObject (readonly)

Returns the value of attribute country.



3
4
5
# File 'lib/pensio_api/billing_address.rb', line 3

def country
  @country
end

#first_nameObject (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_nameObject (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_codeObject (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

#regionObject (readonly)

Returns the value of attribute region.



3
4
5
# File 'lib/pensio_api/billing_address.rb', line 3

def region
  @region
end

#street_addressObject (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