Class: Kentaa::Api::Resources::Billing
- Inherits:
-
Object
- Object
- Kentaa::Api::Resources::Billing
- Defined in:
- lib/kentaa/api/resources/billing.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #address ⇒ Object
- #address2 ⇒ Object
- #attn ⇒ Object
- #city ⇒ Object
- #country ⇒ Object
- #house_number ⇒ Object
- #house_number_addition ⇒ Object
-
#initialize(data) ⇒ Billing
constructor
A new instance of Billing.
- #street ⇒ Object
- #zipcode ⇒ Object
Constructor Details
#initialize(data) ⇒ Billing
Returns a new instance of Billing.
9 10 11 |
# File 'lib/kentaa/api/resources/billing.rb', line 9 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/kentaa/api/resources/billing.rb', line 7 def data @data end |
Instance Method Details
#address ⇒ Object
29 30 31 |
# File 'lib/kentaa/api/resources/billing.rb', line 29 def address data[:address] end |
#address2 ⇒ Object
33 34 35 |
# File 'lib/kentaa/api/resources/billing.rb', line 33 def address2 data[:address2] end |
#attn ⇒ Object
13 14 15 |
# File 'lib/kentaa/api/resources/billing.rb', line 13 def attn data[:attn] end |
#city ⇒ Object
41 42 43 |
# File 'lib/kentaa/api/resources/billing.rb', line 41 def city data[:city] end |
#country ⇒ Object
45 46 47 |
# File 'lib/kentaa/api/resources/billing.rb', line 45 def country data[:country] end |
#house_number ⇒ Object
21 22 23 |
# File 'lib/kentaa/api/resources/billing.rb', line 21 def house_number data[:house_number] end |
#house_number_addition ⇒ Object
25 26 27 |
# File 'lib/kentaa/api/resources/billing.rb', line 25 def house_number_addition data[:house_number_addition] end |
#street ⇒ Object
17 18 19 |
# File 'lib/kentaa/api/resources/billing.rb', line 17 def street data[:street] end |
#zipcode ⇒ Object
37 38 39 |
# File 'lib/kentaa/api/resources/billing.rb', line 37 def zipcode data[:zipcode] end |