Sha256: ac3ea93dad98a259500c6c589805cf27a80a7b322d4e3c0c20e4e692ddaed541

Contents?: true

Size: 816 Bytes

Versions: 30

Compression:

Stored size: 816 Bytes

Contents

# encoding: utf-8

module SportDb::Models

  ## add convenience finders to some model classes
  
  class Event

  include SportDb::Keys::EventKeys

  def self.find_at_2012_13!
    self.find_by_key!( AT_2012_13 )
  end
  
  def self.find_at_cup_2012_13!
    self.find_by_key!( AT_CUP_2012_13 )
  end
  
  def self.find_cl_2012_13!
    self.find_by_key!( CL_2012_13 )
  end
  
  def self.find_euro_2012!
    self.find_by_key!( EURO_2012 )
  end
  
  def self.find_world_2010!
    self.find_by_key!( WORLD_2010 )
  end
  
  def self.find_world_quali_europe_2014!
    self.find_by_key!( WORLD_QUALI_EUROPE_2014 )
  end
  
  def self.find_world_quali_america_2014!
    self.find_by_key!( WORLD_QUALI_AMERICA_2014 )
  end
    
  end # class Event

end # module SportDb::Models


Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
sportdb-1.8.0 lib/sportdb/data/models.rb
sportdb-1.7.9 lib/sportdb/data/models.rb
sportdb-1.7.8 lib/sportdb/data/models.rb
sportdb-1.7.7 lib/sportdb/data/models.rb
sportdb-1.7.6 lib/sportdb/data/models.rb
sportdb-1.7.5 lib/sportdb/data/models.rb
sportdb-1.7.4 lib/sportdb/data/models.rb
sportdb-1.7.3 lib/sportdb/data/models.rb
sportdb-1.7.2 lib/sportdb/data/models.rb
sportdb-1.7.1 lib/sportdb/data/models.rb
sportdb-1.7.0 lib/sportdb/data/models.rb
sportdb-1.6.18 lib/sportdb/data/models.rb
sportdb-1.6.17 lib/sportdb/data/models.rb
sportdb-1.6.16 lib/sportdb/data/models.rb
sportdb-1.6.15 lib/sportdb/data/models.rb
sportdb-1.6.14 lib/sportdb/data/models.rb
sportdb-1.6.13 lib/sportdb/data/models.rb
sportdb-1.6.12 lib/sportdb/data/models.rb
sportdb-1.6.11 lib/sportdb/data/models.rb
sportdb-1.6.10 lib/sportdb/data/models.rb