Class: Nominatim::Address
- Inherits:
-
Object
- Object
- Nominatim::Address
- Defined in:
- lib/nominatim/address.rb
Instance Method Summary collapse
- #administrative ⇒ Object
- #attraction ⇒ Object
- #city ⇒ Object
- #city_district ⇒ Object
- #clothes ⇒ Object
- #commercial ⇒ Object
- #country ⇒ Object
- #country_code ⇒ Object
- #county ⇒ Object
- #house_number ⇒ Object
-
#initialize(attrs = {}) ⇒ Address
constructor
A new instance of Address.
- #pedestrian ⇒ Object
- #place ⇒ Object
- #postcode ⇒ Object
- #road ⇒ Object
- #state ⇒ Object
- #state_district ⇒ Object
- #suburb ⇒ Object
- #town ⇒ Object
- #village ⇒ Object
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
#administrative ⇒ Object
43 44 45 |
# File 'lib/nominatim/address.rb', line 43 def administrative @administrative ||= @attrs[:administrative] end |
#attraction ⇒ Object
7 8 9 |
# File 'lib/nominatim/address.rb', line 7 def attraction @attraction ||= @attrs[:attraction] end |
#city ⇒ Object
39 40 41 |
# File 'lib/nominatim/address.rb', line 39 def city @city ||= @attrs[:city] end |
#city_district ⇒ Object
35 36 37 |
# File 'lib/nominatim/address.rb', line 35 def city_district @city_district ||= @attrs[:city_district] end |
#clothes ⇒ Object
11 12 13 |
# File 'lib/nominatim/address.rb', line 11 def clothes @clothes ||= @attrs[:clothes] end |
#commercial ⇒ Object
23 24 25 |
# File 'lib/nominatim/address.rb', line 23 def commercial @commercial ||= @attrs[:commercial] end |
#country ⇒ Object
63 64 65 |
# File 'lib/nominatim/address.rb', line 63 def country @country ||= @attrs[:country] end |
#country_code ⇒ Object
67 68 69 |
# File 'lib/nominatim/address.rb', line 67 def country_code @country_code ||= @attrs[:country_code] end |
#county ⇒ Object
47 48 49 |
# File 'lib/nominatim/address.rb', line 47 def county @county ||= @attrs[:county] end |
#house_number ⇒ Object
15 16 17 |
# File 'lib/nominatim/address.rb', line 15 def house_number @house_number ||= @attrs[:house_number] end |
#pedestrian ⇒ Object
27 28 29 |
# File 'lib/nominatim/address.rb', line 27 def pedestrian @pedestrian ||= @attrs[:pedestrian] end |
#place ⇒ Object
71 72 73 |
# File 'lib/nominatim/address.rb', line 71 def place @place ||= @attrs[:place] end |
#postcode ⇒ Object
59 60 61 |
# File 'lib/nominatim/address.rb', line 59 def postcode @postcode ||= @attrs[:postcode] end |
#road ⇒ Object
19 20 21 |
# File 'lib/nominatim/address.rb', line 19 def road @road ||= @attrs[:road] end |
#state ⇒ Object
55 56 57 |
# File 'lib/nominatim/address.rb', line 55 def state @state ||= @attrs[:state] end |
#state_district ⇒ Object
51 52 53 |
# File 'lib/nominatim/address.rb', line 51 def state_district @state_district ||= @attrs[:state_district] end |
#suburb ⇒ Object
31 32 33 |
# File 'lib/nominatim/address.rb', line 31 def suburb @suburb ||= @attrs[:suburb] end |
#town ⇒ Object
75 76 77 |
# File 'lib/nominatim/address.rb', line 75 def town @town ||= @attrs[:town] end |
#village ⇒ Object
79 80 81 |
# File 'lib/nominatim/address.rb', line 79 def village @village ||= @attrs[:village] end |