Class: Bishl::ScheduleTeam
- Inherits:
-
Struct
- Object
- Struct
- Bishl::ScheduleTeam
- Defined in:
- lib/schedule_team.rb
Instance Attribute Summary collapse
-
#gamesplayed ⇒ Object
Returns the value of attribute gamesplayed.
-
#goalsagainst ⇒ Object
Returns the value of attribute goalsagainst.
-
#goalsfor ⇒ Object
Returns the value of attribute goalsfor.
-
#losses ⇒ Object
Returns the value of attribute losses.
-
#otlosses ⇒ Object
Returns the value of attribute otlosses.
-
#otwins ⇒ Object
Returns the value of attribute otwins.
-
#points ⇒ Object
Returns the value of attribute points.
-
#schedule ⇒ Object
Returns the value of attribute schedule.
-
#solosses ⇒ Object
Returns the value of attribute solosses.
-
#sowins ⇒ Object
Returns the value of attribute sowins.
-
#teamname ⇒ Object
Returns the value of attribute teamname.
-
#ties ⇒ Object
Returns the value of attribute ties.
-
#wins ⇒ Object
Returns the value of attribute wins.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#gamesplayed ⇒ Object
Returns the value of attribute gamesplayed
2 3 4 |
# File 'lib/schedule_team.rb', line 2 def gamesplayed @gamesplayed end |
#goalsagainst ⇒ Object
Returns the value of attribute goalsagainst
2 3 4 |
# File 'lib/schedule_team.rb', line 2 def goalsagainst @goalsagainst end |
#goalsfor ⇒ Object
Returns the value of attribute goalsfor
2 3 4 |
# File 'lib/schedule_team.rb', line 2 def goalsfor @goalsfor end |
#losses ⇒ Object
Returns the value of attribute losses
2 3 4 |
# File 'lib/schedule_team.rb', line 2 def losses @losses end |
#otlosses ⇒ Object
Returns the value of attribute otlosses
2 3 4 |
# File 'lib/schedule_team.rb', line 2 def otlosses @otlosses end |
#otwins ⇒ Object
Returns the value of attribute otwins
2 3 4 |
# File 'lib/schedule_team.rb', line 2 def otwins @otwins end |
#points ⇒ Object
Returns the value of attribute points
2 3 4 |
# File 'lib/schedule_team.rb', line 2 def points @points end |
#schedule ⇒ Object
Returns the value of attribute schedule
2 3 4 |
# File 'lib/schedule_team.rb', line 2 def schedule @schedule end |
#solosses ⇒ Object
Returns the value of attribute solosses
2 3 4 |
# File 'lib/schedule_team.rb', line 2 def solosses @solosses end |
#sowins ⇒ Object
Returns the value of attribute sowins
2 3 4 |
# File 'lib/schedule_team.rb', line 2 def sowins @sowins end |
#teamname ⇒ Object
Returns the value of attribute teamname
2 3 4 |
# File 'lib/schedule_team.rb', line 2 def teamname @teamname end |
#ties ⇒ Object
Returns the value of attribute ties
2 3 4 |
# File 'lib/schedule_team.rb', line 2 def ties @ties end |
#wins ⇒ Object
Returns the value of attribute wins
2 3 4 |
# File 'lib/schedule_team.rb', line 2 def wins @wins end |
Class Method Details
.create(options = {}) ⇒ Object
9 10 11 |
# File 'lib/schedule_team.rb', line 9 def create(={}) end |
Instance Method Details
#goals_diff ⇒ Object
15 16 17 |
# File 'lib/schedule_team.rb', line 15 def goals_diff self.goalsfor.to_i - self.goalsagainst.to_i end |