Class: Kentaa::Api::Resources::Address

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Address

Returns a new instance of Address.



9
10
11
# File 'lib/kentaa/api/resources/address.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/address.rb', line 7

def data
  @data
end

Instance Method Details

#addressObject



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

def address
  data[:address]
end

#address2Object



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

def address2
  data[:address2]
end

#cityObject



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

def city
  data[:city]
end

#countryObject



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

def country
  data[:country]
end

#house_numberObject



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

def house_number
  data[:house_number]
end

#house_number_additionObject



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

def house_number_addition
  data[:house_number_addition]
end

#streetObject



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

def street
  data[:street]
end

#zipcodeObject



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

def zipcode
  data[:zipcode]
end