Class: Kentaa::Api::Resources::Billing

Inherits:
Object
  • Object
show all
Defined in:
lib/kentaa/api/resources/billing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

#addressObject



29
30
31
# File 'lib/kentaa/api/resources/billing.rb', line 29

def address
  data[:address]
end

#address2Object



33
34
35
# File 'lib/kentaa/api/resources/billing.rb', line 33

def address2
  data[:address2]
end

#attnObject



13
14
15
# File 'lib/kentaa/api/resources/billing.rb', line 13

def attn
  data[:attn]
end

#cityObject



41
42
43
# File 'lib/kentaa/api/resources/billing.rb', line 41

def city
  data[:city]
end

#countryObject



45
46
47
# File 'lib/kentaa/api/resources/billing.rb', line 45

def country
  data[:country]
end

#house_numberObject



21
22
23
# File 'lib/kentaa/api/resources/billing.rb', line 21

def house_number
  data[:house_number]
end

#house_number_additionObject



25
26
27
# File 'lib/kentaa/api/resources/billing.rb', line 25

def house_number_addition
  data[:house_number_addition]
end

#streetObject



17
18
19
# File 'lib/kentaa/api/resources/billing.rb', line 17

def street
  data[:street]
end

#zipcodeObject



37
38
39
# File 'lib/kentaa/api/resources/billing.rb', line 37

def zipcode
  data[:zipcode]
end