Class: Sports::TeamUsage::TeamUsageLine

Inherits:
Object
  • Object
show all
Defined in:
lib/sportdb/structs/structs/team_usage.rb

Overview

nested class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(team) ⇒ TeamUsageLine

Returns a new instance of TeamUsageLine.



13
14
15
16
17
18
19
# File 'lib/sportdb/structs/structs/team_usage.rb', line 13

def initialize( team )
  @team = team

  @matches  = 0
  @seasons  = []
  @levels   = {}
end

Instance Attribute Details

#levelsObject

Returns the value of attribute levels.



8
9
10
# File 'lib/sportdb/structs/structs/team_usage.rb', line 8

def levels
  @levels
end

#matchesObject

Returns the value of attribute matches.



8
9
10
# File 'lib/sportdb/structs/structs/team_usage.rb', line 8

def matches
  @matches
end

#seasonsObject

Returns the value of attribute seasons.



8
9
10
# File 'lib/sportdb/structs/structs/team_usage.rb', line 8

def seasons
  @seasons
end

#teamObject

Returns the value of attribute team.



8
9
10
# File 'lib/sportdb/structs/structs/team_usage.rb', line 8

def team
  @team
end