Class: SportDb::GoalsPlayerStruct
- Inherits:
-
Object
- Object
- SportDb::GoalsPlayerStruct
- Defined in:
- lib/sportdb/finders/goals.rb
Instance Attribute Summary collapse
-
#minutes ⇒ Object
ary of minutes e.g.
-
#name ⇒ Object
note: player with own goal (o.g) gets listed on other team (thus, player might have two entries if also scored for its own team).
Instance Method Summary collapse
-
#initialize ⇒ GoalsPlayerStruct
constructor
A new instance of GoalsPlayerStruct.
Constructor Details
#initialize ⇒ GoalsPlayerStruct
Returns a new instance of GoalsPlayerStruct.
15 16 17 |
# File 'lib/sportdb/finders/goals.rb', line 15 def initialize @minutes = [] end |
Instance Attribute Details
#minutes ⇒ Object
ary of minutes e.g. 30’, 45+2’, 72’
13 14 15 |
# File 'lib/sportdb/finders/goals.rb', line 13 def minutes @minutes end |
#name ⇒ Object
note: player with own goal (o.g) gets listed on other team
(thus, player might have two entries if also scored for its own team)
12 13 14 |
# File 'lib/sportdb/finders/goals.rb', line 12 def name @name end |