Class: Nominatim::Address

Inherits:
Object
  • Object
show all
Defined in:
lib/nominatim/address.rb

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Address

Returns a new instance of Address.



3
4
5
# File 'lib/nominatim/address.rb', line 3

def initialize(attrs = {})
  @attrs = attrs
end

Instance Method Details

#administrativeObject



43
44
45
# File 'lib/nominatim/address.rb', line 43

def administrative
  @administrative ||= @attrs[:administrative]
end

#attractionObject



7
8
9
# File 'lib/nominatim/address.rb', line 7

def attraction
  @attraction ||= @attrs[:attraction]
end

#cityObject



39
40
41
# File 'lib/nominatim/address.rb', line 39

def city
  @city ||= @attrs[:city]
end

#city_districtObject



35
36
37
# File 'lib/nominatim/address.rb', line 35

def city_district
  @city_district ||= @attrs[:city_district]
end

#clothesObject



11
12
13
# File 'lib/nominatim/address.rb', line 11

def clothes
  @clothes ||= @attrs[:clothes]
end

#commercialObject



23
24
25
# File 'lib/nominatim/address.rb', line 23

def commercial
  @commercial ||= @attrs[:commercial]
end

#countryObject



63
64
65
# File 'lib/nominatim/address.rb', line 63

def country
  @country ||= @attrs[:country]
end

#country_codeObject



67
68
69
# File 'lib/nominatim/address.rb', line 67

def country_code
  @country_code ||= @attrs[:country_code]
end

#countyObject



47
48
49
# File 'lib/nominatim/address.rb', line 47

def county
  @county ||= @attrs[:county]
end

#house_numberObject



15
16
17
# File 'lib/nominatim/address.rb', line 15

def house_number
  @house_number ||= @attrs[:house_number]
end

#pedestrianObject



27
28
29
# File 'lib/nominatim/address.rb', line 27

def pedestrian
  @pedestrian ||= @attrs[:pedestrian]
end

#placeObject



71
72
73
# File 'lib/nominatim/address.rb', line 71

def place
  @place ||= @attrs[:place]
end

#postcodeObject



59
60
61
# File 'lib/nominatim/address.rb', line 59

def postcode
  @postcode ||= @attrs[:postcode]
end

#roadObject



19
20
21
# File 'lib/nominatim/address.rb', line 19

def road
  @road ||= @attrs[:road]
end

#stateObject



55
56
57
# File 'lib/nominatim/address.rb', line 55

def state
  @state ||= @attrs[:state]
end

#state_districtObject



51
52
53
# File 'lib/nominatim/address.rb', line 51

def state_district
  @state_district ||= @attrs[:state_district]
end

#suburbObject



31
32
33
# File 'lib/nominatim/address.rb', line 31

def suburb
  @suburb ||= @attrs[:suburb]
end

#townObject



75
76
77
# File 'lib/nominatim/address.rb', line 75

def town
  @town ||= @attrs[:town]
end

#villageObject



79
80
81
# File 'lib/nominatim/address.rb', line 79

def village
  @village ||= @attrs[:village]
end