Sha256: ea986bba8e2acc39bc0fbe35a56a7b056349318e93533d4bba2ed31c0c50a949

Contents?: true

Size: 816 Bytes

Versions: 9

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

9 entries across 9 versions & 1 rubygems

Version Path
sportdb-1.5.0 lib/sportdb/data/models.rb
sportdb-1.4.2 lib/sportdb/data/models.rb
sportdb-1.4.1 lib/sportdb/data/models.rb
sportdb-1.4.0 lib/sportdb/data/models.rb
sportdb-1.3.0 lib/sportdb/data/models.rb
sportdb-1.2.0 lib/sportdb/data/models.rb
sportdb-1.1.0 lib/sportdb/data/models.rb
sportdb-1.0.1 lib/sportdb/data/models.rb
sportdb-1.0.0 lib/sportdb/data/models.rb