Class: Bishl::ScheduleTeam

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#gamesplayedObject

Returns the value of attribute gamesplayed

Returns:

  • (Object)

    the current value of gamesplayed



2
3
4
# File 'lib/schedule_team.rb', line 2

def gamesplayed
  @gamesplayed
end

#goalsagainstObject

Returns the value of attribute goalsagainst

Returns:

  • (Object)

    the current value of goalsagainst



2
3
4
# File 'lib/schedule_team.rb', line 2

def goalsagainst
  @goalsagainst
end

#goalsforObject

Returns the value of attribute goalsfor

Returns:

  • (Object)

    the current value of goalsfor



2
3
4
# File 'lib/schedule_team.rb', line 2

def goalsfor
  @goalsfor
end

#lossesObject

Returns the value of attribute losses

Returns:

  • (Object)

    the current value of losses



2
3
4
# File 'lib/schedule_team.rb', line 2

def losses
  @losses
end

#otlossesObject

Returns the value of attribute otlosses

Returns:

  • (Object)

    the current value of otlosses



2
3
4
# File 'lib/schedule_team.rb', line 2

def otlosses
  @otlosses
end

#otwinsObject

Returns the value of attribute otwins

Returns:

  • (Object)

    the current value of otwins



2
3
4
# File 'lib/schedule_team.rb', line 2

def otwins
  @otwins
end

#pointsObject

Returns the value of attribute points

Returns:

  • (Object)

    the current value of points



2
3
4
# File 'lib/schedule_team.rb', line 2

def points
  @points
end

#scheduleObject

Returns the value of attribute schedule

Returns:

  • (Object)

    the current value of schedule



2
3
4
# File 'lib/schedule_team.rb', line 2

def schedule
  @schedule
end

#solossesObject

Returns the value of attribute solosses

Returns:

  • (Object)

    the current value of solosses



2
3
4
# File 'lib/schedule_team.rb', line 2

def solosses
  @solosses
end

#sowinsObject

Returns the value of attribute sowins

Returns:

  • (Object)

    the current value of sowins



2
3
4
# File 'lib/schedule_team.rb', line 2

def sowins
  @sowins
end

#teamnameObject

Returns the value of attribute teamname

Returns:

  • (Object)

    the current value of teamname



2
3
4
# File 'lib/schedule_team.rb', line 2

def teamname
  @teamname
end

#tiesObject

Returns the value of attribute ties

Returns:

  • (Object)

    the current value of ties



2
3
4
# File 'lib/schedule_team.rb', line 2

def ties
  @ties
end

#winsObject

Returns the value of attribute wins

Returns:

  • (Object)

    the current value of 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(options={})

end

Instance Method Details

#goals_diffObject



15
16
17
# File 'lib/schedule_team.rb', line 15

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