class SportDb::Import::Team

Public Instance Methods

name_by_season( season ) click to toggle source

add convenience lookup helper / method for name by season for now

use clubs history - for now kept separate from struct - why? why not?
# File lib/sportdb/formats.rb, line 46
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