Class: SportDb::Import::Team
- Inherits:
-
Object
- Object
- SportDb::Import::Team
- Defined in:
- lib/sportdb/search.rb
Instance Method Summary collapse
-
#name_by_season(season) ⇒ Object
add convenience lookup helper / method for name by season for now use clubs history - for now kept separate from struct - why? why not?.
Instance Method Details
#name_by_season(season) ⇒ Object
add convenience lookup helper / method for name by season for now
use clubs history - for now kept separate from struct - why? why not?
176 177 178 179 |
# File 'lib/sportdb/search.rb', line 176 def name_by_season( season ) ## note: returns / fallback to "regular" name if no records found in history SportDb::Import.catalog.clubs_history.find_name_by( name: name, season: season ) || name end |