Class: SportDb::Import::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/sportdb/search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#catalog_pathObject

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_pathObject

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

#catalogObject



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

#worldObject



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