Class: StreetNames::Finder
- Inherits:
-
Object
- Object
- StreetNames::Finder
- Defined in:
- lib/street_names/finder.rb
Instance Attribute Summary collapse
-
#streets ⇒ Object
readonly
Returns the value of attribute streets.
Instance Method Summary collapse
-
#initialize(locale = LOCALE) ⇒ Finder
constructor
A new instance of Finder.
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
#streets ⇒ Object (readonly)
Returns the value of attribute streets.
3 4 5 |
# File 'lib/street_names/finder.rb', line 3 def streets @streets end |