Class: SportDb::GoalStruct
- Inherits:
-
Object
- Object
- SportDb::GoalStruct
- Defined in:
- lib/sportdb/finders/goals.rb
Instance Attribute Summary collapse
-
#minute ⇒ Object
Returns the value of attribute minute.
-
#name ⇒ Object
flat struct for goals - one entry per goals.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#owngoal ⇒ Object
Returns the value of attribute owngoal.
-
#penalty ⇒ Object
Returns the value of attribute penalty.
-
#score1 ⇒ Object
gets calculated.
-
#score2 ⇒ Object
gets calculated.
-
#team ⇒ Object
1 or 2 ? check/todo: add team1 or team2 flag?.
Instance Method Summary collapse
-
#initialize ⇒ GoalStruct
constructor
add pos for sequence number? e.g.
Constructor Details
#initialize ⇒ GoalStruct
add pos for sequence number? e.g. 1,2,3,4 (1st goald, 2nd goal, etc.) ???
44 45 46 |
# File 'lib/sportdb/finders/goals.rb', line 44 def initialize # do nothing end |
Instance Attribute Details
#minute ⇒ Object
Returns the value of attribute minute.
38 39 40 |
# File 'lib/sportdb/finders/goals.rb', line 38 def minute @minute end |
#name ⇒ Object
flat struct for goals - one entry per goals
36 37 38 |
# File 'lib/sportdb/finders/goals.rb', line 36 def name @name end |
#offset ⇒ Object
Returns the value of attribute offset.
38 39 40 |
# File 'lib/sportdb/finders/goals.rb', line 38 def offset @offset end |
#owngoal ⇒ Object
Returns the value of attribute owngoal.
39 40 41 |
# File 'lib/sportdb/finders/goals.rb', line 39 def owngoal @owngoal end |
#penalty ⇒ Object
Returns the value of attribute penalty.
39 40 41 |
# File 'lib/sportdb/finders/goals.rb', line 39 def penalty @penalty end |
#score1 ⇒ Object
gets calculated
40 41 42 |
# File 'lib/sportdb/finders/goals.rb', line 40 def score1 @score1 end |
#score2 ⇒ Object
gets calculated
40 41 42 |
# File 'lib/sportdb/finders/goals.rb', line 40 def score2 @score2 end |
#team ⇒ Object
1 or 2 ? check/todo: add team1 or team2 flag?
37 38 39 |
# File 'lib/sportdb/finders/goals.rb', line 37 def team @team end |