Class: StreetNames::Finder

Inherits:
Object
  • Object
show all
Defined in:
lib/street_names/finder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(locale = LOCALE) ⇒ Finder

Returns a new instance of Finder.



5
6
7
8
# File 'lib/street_names/finder.rb', line 5

def initialize locale=LOCALE
  @database = StreetNames::Database.new locale
  convert!
end

Instance Attribute Details

#streetsObject (readonly)

Returns the value of attribute streets.



3
4
5
# File 'lib/street_names/finder.rb', line 3

def streets
  @streets
end