Sha256: 2ff8ba4a3417c57282a45deeb45d0c5a345ee0b624fb237bad0855ebf4347972

Contents?: true

Size: 1.34 KB

Versions: 14

Compression:

Stored size: 1.34 KB

Contents

# encoding: utf-8

module SportDb
  module FixtureHelpers


  def find_teams!( line ) # NB: returns an array - note: plural! (teamsss)
    puts "*** find_teams! deprecated -- use TeamMapper!!!"
    TextUtils.find_keys_for!( 'team', line )
  end
  
  def find_team!( line )  # NB: returns key (string or nil)
    puts "*** find_team! deprecated -- use TeamMapper!!!"
    TextUtils.find_key_for!( 'team', line )
  end

  ## todo: check if find_team1 gets used?  if not remove it!!  use find_teams!
  def find_team1!( line )
    puts "*** find_team1! deprecated -- use TeamMapper!!!"
    TextUtils.find_key_for!( 'team1', line )
  end

  def find_team2!( line )
    puts "*** find_team2! deprecated -- use TeamMapper!!!"
    TextUtils.find_key_for!( 'team2', line )
  end

  ## todo/fix: pass in known_teams as a parameter? why? why not?

  def map_teams!( line )
    puts "*** map_teams! deprecated -- use TeamMapper!!!"
    TextUtils.map_titles_for!( 'team', line, @known_teams )
  end
  
  def map_team!( line )  # alias map_teams!
    map_teams!( line )
  end


  ## depreciated methods - use map_
  def match_teams!( line )   ## fix: rename to map_teams!! - remove match_teams!
    ## todo: issue depreciated warning
    map_teams!( line )
  end # method match_teams!


  end # module FixtureHelpers
end # module SportDb

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
sportdb-models-1.18.6 lib/sportdb/utils_teams.rb
sportdb-models-1.18.5 lib/sportdb/utils_teams.rb
sportdb-models-1.18.4 lib/sportdb/utils_teams.rb
sportdb-models-1.18.3 lib/sportdb/utils_teams.rb
sportdb-models-1.18.2 lib/sportdb/utils_teams.rb
sportdb-models-1.18.1 lib/sportdb/utils_teams.rb
sportdb-models-1.18.0 lib/sportdb/utils_teams.rb
sportdb-models-1.17.0 lib/sportdb/utils_teams.rb
sportdb-models-1.16.2 lib/sportdb/utils_teams.rb
sportdb-models-1.16.1 lib/sportdb/utils_teams.rb
sportdb-models-1.16.0 lib/sportdb/utils_teams.rb
sportdb-models-1.15.2 lib/sportdb/utils_teams.rb
sportdb-models-1.15.1 lib/sportdb/utils_teams.rb
sportdb-models-1.15.0 lib/sportdb/utils_teams.rb