Class: Sportradar::Api::Football::StatPack::Fumbles
- Inherits:
-
Sportradar::Api::Football::StatPack
- Object
- Data
- Sportradar::Api::Football::StatPack
- Sportradar::Api::Football::StatPack::Fumbles
- Defined in:
- lib/sportradar/api/football/stat_pack/fumbles.rb
Instance Attribute Summary collapse
-
#ez_rec_tds ⇒ Object
Returns the value of attribute ez_rec_tds.
-
#forced_fumbles ⇒ Object
Returns the value of attribute forced_fumbles.
-
#fumbles ⇒ Object
Returns the value of attribute fumbles.
-
#lost_fumbles ⇒ Object
Returns the value of attribute lost_fumbles.
-
#opp_rec ⇒ Object
Returns the value of attribute opp_rec.
-
#opp_rec_tds ⇒ Object
Returns the value of attribute opp_rec_tds.
-
#opp_rec_yards ⇒ Object
Returns the value of attribute opp_rec_yards.
-
#out_of_bounds ⇒ Object
Returns the value of attribute out_of_bounds.
-
#own_rec ⇒ Object
Returns the value of attribute own_rec.
-
#own_rec_tds ⇒ Object
Returns the value of attribute own_rec_tds.
-
#own_rec_yards ⇒ Object
Returns the value of attribute own_rec_yards.
-
#response ⇒ Object
Returns the value of attribute response.
Attributes inherited from Sportradar::Api::Football::StatPack
#id, #name, #player, #players, #position, #yards
Instance Method Summary collapse
Methods inherited from Sportradar::Api::Football::StatPack
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
This class inherits a constructor from Sportradar::Api::Football::StatPack
Instance Attribute Details
#ez_rec_tds ⇒ Object
Returns the value of attribute ez_rec_tds.
4 5 6 |
# File 'lib/sportradar/api/football/stat_pack/fumbles.rb', line 4 def ez_rec_tds @ez_rec_tds end |
#forced_fumbles ⇒ Object
Returns the value of attribute forced_fumbles.
4 5 6 |
# File 'lib/sportradar/api/football/stat_pack/fumbles.rb', line 4 def forced_fumbles @forced_fumbles end |
#fumbles ⇒ Object
Returns the value of attribute fumbles.
4 5 6 |
# File 'lib/sportradar/api/football/stat_pack/fumbles.rb', line 4 def fumbles @fumbles end |
#lost_fumbles ⇒ Object
Returns the value of attribute lost_fumbles.
4 5 6 |
# File 'lib/sportradar/api/football/stat_pack/fumbles.rb', line 4 def lost_fumbles @lost_fumbles end |
#opp_rec ⇒ Object
Returns the value of attribute opp_rec.
4 5 6 |
# File 'lib/sportradar/api/football/stat_pack/fumbles.rb', line 4 def opp_rec @opp_rec end |
#opp_rec_tds ⇒ Object
Returns the value of attribute opp_rec_tds.
4 5 6 |
# File 'lib/sportradar/api/football/stat_pack/fumbles.rb', line 4 def opp_rec_tds @opp_rec_tds end |
#opp_rec_yards ⇒ Object
Returns the value of attribute opp_rec_yards.
4 5 6 |
# File 'lib/sportradar/api/football/stat_pack/fumbles.rb', line 4 def opp_rec_yards @opp_rec_yards end |
#out_of_bounds ⇒ Object
Returns the value of attribute out_of_bounds.
4 5 6 |
# File 'lib/sportradar/api/football/stat_pack/fumbles.rb', line 4 def out_of_bounds @out_of_bounds end |
#own_rec ⇒ Object
Returns the value of attribute own_rec.
4 5 6 |
# File 'lib/sportradar/api/football/stat_pack/fumbles.rb', line 4 def own_rec @own_rec end |
#own_rec_tds ⇒ Object
Returns the value of attribute own_rec_tds.
4 5 6 |
# File 'lib/sportradar/api/football/stat_pack/fumbles.rb', line 4 def own_rec_tds @own_rec_tds end |
#own_rec_yards ⇒ Object
Returns the value of attribute own_rec_yards.
4 5 6 |
# File 'lib/sportradar/api/football/stat_pack/fumbles.rb', line 4 def own_rec_yards @own_rec_yards end |
#response ⇒ Object
Returns the value of attribute response.
4 5 6 |
# File 'lib/sportradar/api/football/stat_pack/fumbles.rb', line 4 def response @response end |
Instance Method Details
#set_stats ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/sportradar/api/football/stat_pack/fumbles.rb', line 6 def set_stats @response = response[1] if response.is_a? Array @fumbles = response["fumbles"] || response['fum'] @lost_fumbles = response["lost_fumbles"] || response['lost'] @own_rec = response["own_rec"] @own_rec_yards = response["own_rec_yards"] || response["own_rec_yds"] @opp_rec = response["opp_rec"] @opp_rec_yards = response["opp_rec_yards"] || response["opp_rec_yds"] @out_of_bounds = response["out_of_bounds"] || response['oob'] @forced_fumbles = response["forced_fumbles"] || response['force_fum'] @own_rec_tds = response["own_rec_tds"] || response["own_rec_td"] @opp_rec_tds = response["opp_rec_tds"] || response["opp_rec_td"] @ez_rec_tds = response["ez_rec_tds"] # unknown ncaafb end |