class Concerns::EventFight
Attributes
blue_height[RW]
blue_name[RW]
blue_record[RW]
blue_weight[RW]
event[RW]
fights[RW]
red_height[RW]
red_name[RW]
red_record[RW]
red_weight[RW]
Public Class Methods
all()
click to toggle source
# File lib/event_fight.rb, line 15 def self.all @@all end
clear()
click to toggle source
# File lib/event_fight.rb, line 19 def self.clear @@all.clear end
new(red_name = nil, blue_name = nil, fight_hash = nil)
click to toggle source
# File lib/event_fight.rb, line 6 def initialize(red_name = nil, blue_name = nil, fight_hash = nil) @red_name = red_name @blue_name = blue_name fight_hash.each do |key, value| self.send("#{key}=", value) end @@all << self end