Class: NFL::LiveUpdate::GameCenter::TeamScore
- Inherits:
-
Object
- Object
- NFL::LiveUpdate::GameCenter::TeamScore
- Defined in:
- lib/nfl/live_update/game_center/team_score.rb
Instance Attribute Summary collapse
-
#first_quarter ⇒ Object
Returns the value of attribute first_quarter.
-
#forth_quarter ⇒ Object
Returns the value of attribute forth_quarter.
-
#overtime ⇒ Object
Returns the value of attribute overtime.
-
#second_quarter ⇒ Object
Returns the value of attribute second_quarter.
-
#third_quarter ⇒ Object
Returns the value of attribute third_quarter.
Instance Method Summary collapse
-
#initialize(json) ⇒ TeamScore
constructor
A new instance of TeamScore.
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_quarter ⇒ Object
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_quarter ⇒ Object
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 |
#overtime ⇒ Object
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_quarter ⇒ Object
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_quarter ⇒ Object
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 |