Sha256: 6db8022bc0c188316e6b58deadad48d83eed7d8f370019bc23b35cdb2d7a4cb6

Contents?: true

Size: 491 Bytes

Versions: 12

Compression:

Stored size: 491 Bytes

Contents

# encoding: UTF-8

module SportDb

class TeamMapper
  def initialize( recs )
    @mapper = TextUtils::TitleMapper2.new( recs, 'team' )
  end

  def find_teams!( line ) # Note: returns an array - note: plural! (teamsssss)
    @mapper.find_keys!( line )
  end

  def find_team!( line )  # Note: returns key (string or nil)
    @mapper.find_key!( line )
  end

  def map_teams!( line )
    @mapper.map_titles!( line )
  end
end # class TeamMapper

end # module SportDb

Version data entries

12 entries across 12 versions & 1 rubygems

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