Class: Bishl::ScheduleTeam

Inherits:
Object
  • Object
show all
Includes:
Virtus
Defined in:
lib/schedule_team.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#scheduleObject

Returns the value of attribute schedule.



19
20
21
# File 'lib/schedule_team.rb', line 19

def schedule
  @schedule
end

Class Method Details

.create(options = {}) ⇒ Object



27
28
29
# File 'lib/schedule_team.rb', line 27

def create(options={})

end

Instance Method Details

#goals_diffObject



33
34
35
# File 'lib/schedule_team.rb', line 33

def goals_diff
  self.goalsfor.to_i - self.goalsagainst.to_i
end

#hashifyObject



21
22
23
# File 'lib/schedule_team.rb', line 21

def hashify
  self.attributes.merge!({:goals_diff => self.goals_diff})
end