Class: Sportradar::Api::Football::PlayDefenseStatistics
- Defined in:
- lib/sportradar/api/football/play_statistics.rb
Instance Attribute Summary collapse
-
#ast_tackle ⇒ Object
Returns the value of attribute ast_tackle.
-
#int_touchdown ⇒ Object
Returns the value of attribute int_touchdown.
-
#int_yards ⇒ Object
Returns the value of attribute int_yards.
-
#interception ⇒ Object
Returns the value of attribute interception.
-
#nullified ⇒ Object
Returns the value of attribute nullified.
-
#pass_defended ⇒ Object
Returns the value of attribute pass_defended.
-
#player ⇒ Object
Returns the value of attribute player.
-
#primary ⇒ Object
Returns the value of attribute primary.
-
#qb_hit ⇒ Object
Returns the value of attribute qb_hit.
-
#sack ⇒ Object
Returns the value of attribute sack.
-
#sack_yards ⇒ Object
Returns the value of attribute sack_yards.
-
#tackle ⇒ Object
Returns the value of attribute tackle.
-
#team ⇒ Object
Returns the value of attribute team.
-
#tlost ⇒ Object
Returns the value of attribute tlost.
-
#tlost_yards ⇒ Object
Returns the value of attribute tlost_yards.
Instance Method Summary collapse
-
#initialize(data) ⇒ PlayDefenseStatistics
constructor
A new instance of PlayDefenseStatistics.
- #nullified? ⇒ Boolean
Methods inherited from Data
#all_attributes, #attributes, #create_data, #parse_into_array, #parse_into_array_with_options, #parse_out_hashes, #structure_links, #update_data
Constructor Details
#initialize(data) ⇒ PlayDefenseStatistics
Returns a new instance of PlayDefenseStatistics.
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 124 def initialize(data) @response = data @ast_tackle = data['ast_tackle'] @interception = data['interception'] @int_yards = data['int_yards'] @int_touchdown = data['int_touchdown'] @nullified = data['nullified'] @pass_defended = data['pass_defended'] @primary = data['primary'] @qb_hit = data['qb_hit'] @sack = data['sack'] @sack_yards = data['sack_yards'] @tlost = data['tlost'] @tlost_yards = data['tlost_yards'] @tackle = data['tackle'] @team = OpenStruct.new(data['team']) if data['team'] @player = OpenStruct.new(data['player']) if data['player'] @nullified = data['nullified'] end |
Instance Attribute Details
#ast_tackle ⇒ Object
Returns the value of attribute ast_tackle.
123 124 125 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 123 def ast_tackle @ast_tackle end |
#int_touchdown ⇒ Object
Returns the value of attribute int_touchdown.
123 124 125 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 123 def int_touchdown @int_touchdown end |
#int_yards ⇒ Object
Returns the value of attribute int_yards.
123 124 125 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 123 def int_yards @int_yards end |
#interception ⇒ Object
Returns the value of attribute interception.
123 124 125 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 123 def interception @interception end |
#nullified ⇒ Object
Returns the value of attribute nullified.
123 124 125 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 123 def nullified @nullified end |
#pass_defended ⇒ Object
Returns the value of attribute pass_defended.
123 124 125 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 123 def pass_defended @pass_defended end |
#player ⇒ Object
Returns the value of attribute player.
123 124 125 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 123 def player @player end |
#primary ⇒ Object
Returns the value of attribute primary.
123 124 125 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 123 def primary @primary end |
#qb_hit ⇒ Object
Returns the value of attribute qb_hit.
123 124 125 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 123 def qb_hit @qb_hit end |
#sack ⇒ Object
Returns the value of attribute sack.
123 124 125 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 123 def sack @sack end |
#sack_yards ⇒ Object
Returns the value of attribute sack_yards.
123 124 125 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 123 def sack_yards @sack_yards end |
#tackle ⇒ Object
Returns the value of attribute tackle.
123 124 125 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 123 def tackle @tackle end |
#team ⇒ Object
Returns the value of attribute team.
123 124 125 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 123 def team @team end |
#tlost ⇒ Object
Returns the value of attribute tlost.
123 124 125 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 123 def tlost @tlost end |
#tlost_yards ⇒ Object
Returns the value of attribute tlost_yards.
123 124 125 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 123 def tlost_yards @tlost_yards end |
Instance Method Details
#nullified? ⇒ Boolean
144 145 146 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 144 def nullified? @nullified.to_s == 'true' end |