Class: Bishl::ScheduleTeam
- Inherits:
-
Object
- Object
- Bishl::ScheduleTeam
- Includes:
- Virtus
- Defined in:
- lib/schedule_team.rb
Instance Attribute Summary collapse
-
#schedule ⇒ Object
Returns the value of attribute schedule.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#schedule ⇒ Object
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(={}) end |
Instance Method Details
#goals_diff ⇒ Object
33 34 35 |
# File 'lib/schedule_team.rb', line 33 def goals_diff self.goalsfor.to_i - self.goalsagainst.to_i end |
#hashify ⇒ Object
21 22 23 |
# File 'lib/schedule_team.rb', line 21 def hashify self.attributes.merge!({:goals_diff => self.goals_diff}) end |