Sha256: 34f4b8870d02b3336b91fc47e7d38fe4b1d7449afa7d3c13b1d1c1d1670880c2

Contents?: true

Size: 1.06 KB

Versions: 33

Compression:

Stored size: 1.06 KB

Contents

# encoding: utf-8

module SportDb
  module FixtureHelpers


  def find_ground!( line )
    TextUtils.find_key_for!( 'ground', line )
  end

  ## todo/fix: pass in known_grounds as a parameter? why? why not?
  ### todo/fix:
  ##    remove =nil in para - make param required w/o fallback

  def map_ground!( line, known_grounds=nil )
    if known_grounds.nil?
      puts "depreciated API call map_ground! (pass in mapping table as 2nd param)"
      known_grounds = @known_grounds
    end

    TextUtils.map_titles_for!( 'ground', line, known_grounds )
  end



  def find_person!( line )
    TextUtils.find_key_for!( 'person', line )
  end

  ### todo/fix:
  ##    remove =nil in para - make param required w/o fallback
  def map_person!( line, known_persons=nil )
    if known_persons.nil?
      puts "depreciated API call map_person! (pass in mapping table as 2nd param)"
      known_persons = @known_persons
    end
    
    TextUtils.map_titles_for!( 'person', line, known_persons )
  end


  end # module FixtureHelpers
end # module SportDb

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
sportdb-models-1.18.6 lib/sportdb/utils_map.rb
sportdb-models-1.18.5 lib/sportdb/utils_map.rb
sportdb-models-1.18.4 lib/sportdb/utils_map.rb
sportdb-models-1.18.3 lib/sportdb/utils_map.rb
sportdb-models-1.18.2 lib/sportdb/utils_map.rb
sportdb-models-1.18.1 lib/sportdb/utils_map.rb
sportdb-models-1.18.0 lib/sportdb/utils_map.rb
sportdb-models-1.17.0 lib/sportdb/utils_map.rb
sportdb-models-1.16.2 lib/sportdb/utils_map.rb
sportdb-models-1.16.1 lib/sportdb/utils_map.rb
sportdb-models-1.16.0 lib/sportdb/utils_map.rb
sportdb-models-1.15.2 lib/sportdb/utils_map.rb
sportdb-models-1.15.1 lib/sportdb/utils_map.rb
sportdb-models-1.15.0 lib/sportdb/utils_map.rb
sportdb-models-1.14.2 lib/sportdb/utils_map.rb
sportdb-models-1.14.1 lib/sportdb/utils_map.rb
sportdb-models-1.14.0 lib/sportdb/utils_map.rb
sportdb-models-1.13.0 lib/sportdb/utils_map.rb
sportdb-models-1.12.0 lib/sportdb/utils_map.rb
sportdb-models-1.11.2 lib/sportdb/utils_map.rb