Class: NFL::LiveUpdate::GameCenter::TeamStat
- Inherits:
-
Object
- Object
- NFL::LiveUpdate::GameCenter::TeamStat
- Defined in:
- lib/nfl/live_update/game_center/team_stat.rb
Instance Attribute Summary collapse
-
#first_downs ⇒ Object
Returns the value of attribute first_downs.
-
#passing_yards ⇒ Object
Returns the value of attribute passing_yards.
-
#penalties ⇒ Object
Returns the value of attribute penalties.
-
#penalty_yards ⇒ Object
Returns the value of attribute penalty_yards.
-
#punting_average ⇒ Object
Returns the value of attribute punting_average.
-
#punting_yards ⇒ Object
Returns the value of attribute punting_yards.
-
#punts ⇒ Object
Returns the value of attribute punts.
-
#rushing_yards ⇒ Object
Returns the value of attribute rushing_yards.
-
#time_of_possession ⇒ Object
Returns the value of attribute time_of_possession.
-
#total_yards ⇒ Object
Returns the value of attribute total_yards.
-
#turnovers ⇒ Object
Returns the value of attribute turnovers.
Instance Method Summary collapse
-
#initialize(json) ⇒ TeamStat
constructor
A new instance of TeamStat.
Constructor Details
#initialize(json) ⇒ TeamStat
Returns a new instance of TeamStat.
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/nfl/live_update/game_center/team_stat.rb', line 10 def initialize(json) @first_downs = json["totfd"] @total_yards = json["totyds"] @passing_yards = json["pyds"] @rushing_yards = json["ryds"] @penalties = json["pen"] @penalty_yards = json["penyds"] @punts = json["pt"] @punting_yards = json["ptyds"] @punting_average = json["ptavg"] @time_of_possession = json["top"] end |
Instance Attribute Details
#first_downs ⇒ Object
Returns the value of attribute first_downs.
6 7 8 |
# File 'lib/nfl/live_update/game_center/team_stat.rb', line 6 def first_downs @first_downs end |
#passing_yards ⇒ Object
Returns the value of attribute passing_yards.
6 7 8 |
# File 'lib/nfl/live_update/game_center/team_stat.rb', line 6 def passing_yards @passing_yards end |
#penalties ⇒ Object
Returns the value of attribute penalties.
6 7 8 |
# File 'lib/nfl/live_update/game_center/team_stat.rb', line 6 def penalties @penalties end |
#penalty_yards ⇒ Object
Returns the value of attribute penalty_yards.
6 7 8 |
# File 'lib/nfl/live_update/game_center/team_stat.rb', line 6 def penalty_yards @penalty_yards end |
#punting_average ⇒ Object
Returns the value of attribute punting_average.
6 7 8 |
# File 'lib/nfl/live_update/game_center/team_stat.rb', line 6 def punting_average @punting_average end |
#punting_yards ⇒ Object
Returns the value of attribute punting_yards.
6 7 8 |
# File 'lib/nfl/live_update/game_center/team_stat.rb', line 6 def punting_yards @punting_yards end |
#punts ⇒ Object
Returns the value of attribute punts.
6 7 8 |
# File 'lib/nfl/live_update/game_center/team_stat.rb', line 6 def punts @punts end |
#rushing_yards ⇒ Object
Returns the value of attribute rushing_yards.
6 7 8 |
# File 'lib/nfl/live_update/game_center/team_stat.rb', line 6 def rushing_yards @rushing_yards end |
#time_of_possession ⇒ Object
Returns the value of attribute time_of_possession.
6 7 8 |
# File 'lib/nfl/live_update/game_center/team_stat.rb', line 6 def time_of_possession @time_of_possession end |
#total_yards ⇒ Object
Returns the value of attribute total_yards.
6 7 8 |
# File 'lib/nfl/live_update/game_center/team_stat.rb', line 6 def total_yards @total_yards end |
#turnovers ⇒ Object
Returns the value of attribute turnovers.
6 7 8 |
# File 'lib/nfl/live_update/game_center/team_stat.rb', line 6 def turnovers @turnovers end |