Class: Sportradar::Api::Football::StatPack::Fumbles

Inherits:
Sportradar::Api::Football::StatPack show all
Defined in:
lib/sportradar/api/football/stat_pack/fumbles.rb

Instance Attribute Summary collapse

Attributes inherited from Sportradar::Api::Football::StatPack

#id, #name, #player, #players, #position, #yards

Instance Method Summary collapse

Methods inherited from Sportradar::Api::Football::StatPack

#for_player, #initialize

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_tdsObject

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_fumblesObject

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

#fumblesObject

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_fumblesObject

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_recObject

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_tdsObject

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_yardsObject

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_boundsObject

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_recObject

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_tdsObject

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_yardsObject

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

#responseObject

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_statsObject



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