Class: SportDb::GoalStruct

Inherits:
Object
  • Object
show all
Defined in:
lib/sportdb/finders/goals.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGoalStruct

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

#minuteObject

Returns the value of attribute minute.



38
39
40
# File 'lib/sportdb/finders/goals.rb', line 38

def minute
  @minute
end

#nameObject

flat struct for goals - one entry per goals



36
37
38
# File 'lib/sportdb/finders/goals.rb', line 36

def name
  @name
end

#offsetObject

Returns the value of attribute offset.



38
39
40
# File 'lib/sportdb/finders/goals.rb', line 38

def offset
  @offset
end

#owngoalObject

Returns the value of attribute owngoal.



39
40
41
# File 'lib/sportdb/finders/goals.rb', line 39

def owngoal
  @owngoal
end

#penaltyObject

Returns the value of attribute penalty.



39
40
41
# File 'lib/sportdb/finders/goals.rb', line 39

def penalty
  @penalty
end

#score1Object

gets calculated



40
41
42
# File 'lib/sportdb/finders/goals.rb', line 40

def score1
  @score1
end

#score2Object

gets calculated



40
41
42
# File 'lib/sportdb/finders/goals.rb', line 40

def score2
  @score2
end

#teamObject

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