Sha256: 414eeec7393a7dc1c41303f6b475148291f2d24e7c19df8e636b592bec19f7d9
Contents?: true
Size: 501 Bytes
Versions: 10
Compression:
Stored size: 501 Bytes
Contents
# encoding: utf-8 module SportDb class TeamMapper def initialize( records_or_mapping ) @mapper = MapperV2.new( records_or_mapping, 'team' ) end def find_teams!( line ) # Note: returns an array - note: plural! (teamsssss) @mapper.find_recs!( line ) end def find_team!( line ) # Note: returns key (string or nil) @mapper.find_rec!( line ) end def map_teams!( line ) @mapper.map_names!( line ) end end # class TeamMapper end # module SportDb
Version data entries
10 entries across 10 versions & 1 rubygems