class Quiz::Worldcup

Attributes

host[RW]
runner_up[RW]
thirth_place[RW]
winner[RW]
year[RW]

Public Class Methods

all() click to toggle source
# File lib/quiz/world_cup.rb, line 13
def self.all
    @@all
end
new(file) click to toggle source
# File lib/quiz/world_cup.rb, line 4
 def initialize(file)
    @@all << self
     file.each{|key,value|
     self.send("#{key}=", value)}
end
world_cup_file(file) click to toggle source
# File lib/quiz/world_cup.rb, line 10
def self.world_cup_file(file)
    file.each{|e|Quiz::Worldcup.new(e)}  
end