Class: SportDb::Import::Configuration
- Inherits:
-
Object
- Object
- SportDb::Import::Configuration
- Defined in:
- lib/sportdb/search.rb
Instance Attribute Summary collapse
-
#catalog_path ⇒ Object
find a better name for setting - why? why not? how about catalogdb or ???.
-
#players_path ⇒ Object
find a better name for setting - why? why not? how about playersdb or ???.
Instance Method Summary collapse
Instance Attribute Details
#catalog_path ⇒ Object
find a better name for setting - why? why not?
how about catalogdb or ???
113 114 115 |
# File 'lib/sportdb/search.rb', line 113 def catalog_path @catalog_path end |
#players_path ⇒ Object
find a better name for setting - why? why not?
how about playersdb or ???
125 126 127 |
# File 'lib/sportdb/search.rb', line 125 def players_path @players_path end |
Instance Method Details
#catalog ⇒ Object
99 100 101 102 103 104 105 106 107 108 |
# File 'lib/sportdb/search.rb', line 99 def catalog @catalog ||= SportSearch.new( leagues: CatalogDb::Metal::League, national_teams: CatalogDb::Metal::NationalTeam, clubs: CatalogDb::Metal::Club, grounds: CatalogDb::Metal::Ground, events: CatalogDb::Metal::EventInfo, players: CatalogDb::Metal::Player, # note - via players.db !!! ) end |
#world ⇒ Object
92 93 94 95 96 97 |
# File 'lib/sportdb/search.rb', line 92 def world @world ||= WorldSearch.new( countries: CatalogDb::Metal::Country, cities: CatalogDb::Metal::City, ) end |