Class: SportDb::GoalsPlayerStruct

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGoalsPlayerStruct

Returns a new instance of GoalsPlayerStruct.



15
16
17
# File 'lib/sportdb/finders/goals.rb', line 15

def initialize
  @minutes = []
end

Instance Attribute Details

#minutesObject

ary of minutes e.g. 30’, 45+2’, 72’



13
14
15
# File 'lib/sportdb/finders/goals.rb', line 13

def minutes
  @minutes
end

#nameObject

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