Class: Sports::TeamUsage::TeamUsageLine
- Inherits:
-
Object
- Object
- Sports::TeamUsage::TeamUsageLine
- Defined in:
- lib/sportdb/structs/structs/team_usage.rb
Overview
nested class
Instance Attribute Summary collapse
-
#levels ⇒ Object
Returns the value of attribute levels.
-
#matches ⇒ Object
Returns the value of attribute matches.
-
#seasons ⇒ Object
Returns the value of attribute seasons.
-
#team ⇒ Object
Returns the value of attribute team.
Instance Method Summary collapse
-
#initialize(team) ⇒ TeamUsageLine
constructor
A new instance of TeamUsageLine.
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
#levels ⇒ Object
Returns the value of attribute levels.
8 9 10 |
# File 'lib/sportdb/structs/structs/team_usage.rb', line 8 def levels @levels end |
#matches ⇒ Object
Returns the value of attribute matches.
8 9 10 |
# File 'lib/sportdb/structs/structs/team_usage.rb', line 8 def matches @matches end |
#seasons ⇒ Object
Returns the value of attribute seasons.
8 9 10 |
# File 'lib/sportdb/structs/structs/team_usage.rb', line 8 def seasons @seasons end |
#team ⇒ Object
Returns the value of attribute team.
8 9 10 |
# File 'lib/sportdb/structs/structs/team_usage.rb', line 8 def team @team end |