Class: NFL::LiveUpdate::GameCenter::TeamScore

Inherits:
Object
  • Object
show all
Defined in:
lib/nfl/live_update/game_center/team_score.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ TeamScore

Returns a new instance of TeamScore.



9
10
11
12
13
14
15
# File 'lib/nfl/live_update/game_center/team_score.rb', line 9

def initialize(json)
  @first_quarter = json["1"]
  @second_quarter = json["2"]
  @third_quarter = json["3"]
  @forth_quarter = json["4"]
  @overtime = json["5"]
end

Instance Attribute Details

#first_quarterObject

Returns the value of attribute first_quarter.



6
7
8
# File 'lib/nfl/live_update/game_center/team_score.rb', line 6

def first_quarter
  @first_quarter
end

#forth_quarterObject

Returns the value of attribute forth_quarter.



6
7
8
# File 'lib/nfl/live_update/game_center/team_score.rb', line 6

def forth_quarter
  @forth_quarter
end

#overtimeObject

Returns the value of attribute overtime.



6
7
8
# File 'lib/nfl/live_update/game_center/team_score.rb', line 6

def overtime
  @overtime
end

#second_quarterObject

Returns the value of attribute second_quarter.



6
7
8
# File 'lib/nfl/live_update/game_center/team_score.rb', line 6

def second_quarter
  @second_quarter
end

#third_quarterObject

Returns the value of attribute third_quarter.



6
7
8
# File 'lib/nfl/live_update/game_center/team_score.rb', line 6

def third_quarter
  @third_quarter
end