Class: Sportradar::Api::Football::StatPack::MiscReturns

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

Instance Attribute Summary collapse

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

#id, #name, #player, #players, #position, #response

Instance Method Summary collapse

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

#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

#blk_fg_touchdownsObject

Returns the value of attribute blk_fg_touchdowns.



4
5
6
# File 'lib/sportradar/api/football/stat_pack/misc_returns.rb', line 4

def blk_fg_touchdowns
  @blk_fg_touchdowns
end

#blk_punt_touchdownsObject

Returns the value of attribute blk_punt_touchdowns.



4
5
6
# File 'lib/sportradar/api/football/stat_pack/misc_returns.rb', line 4

def blk_punt_touchdowns
  @blk_punt_touchdowns
end

#ez_rec_touchdownsObject

Returns the value of attribute ez_rec_touchdowns.



4
5
6
# File 'lib/sportradar/api/football/stat_pack/misc_returns.rb', line 4

def ez_rec_touchdowns
  @ez_rec_touchdowns
end

#fg_return_touchdownsObject

Returns the value of attribute fg_return_touchdowns.



4
5
6
# File 'lib/sportradar/api/football/stat_pack/misc_returns.rb', line 4

def fg_return_touchdowns
  @fg_return_touchdowns
end

#returnsObject

Returns the value of attribute returns.



4
5
6
# File 'lib/sportradar/api/football/stat_pack/misc_returns.rb', line 4

def returns
  @returns
end

#touchdownsObject

Returns the value of attribute touchdowns.



4
5
6
# File 'lib/sportradar/api/football/stat_pack/misc_returns.rb', line 4

def touchdowns
  @touchdowns
end

#yardsObject

Returns the value of attribute yards.



4
5
6
# File 'lib/sportradar/api/football/stat_pack/misc_returns.rb', line 4

def yards
  @yards
end

Instance Method Details

#set_statsObject



6
7
8
9
10
11
12
13
14
# File 'lib/sportradar/api/football/stat_pack/misc_returns.rb', line 6

def set_stats
  @returns              = response["returns"] || response['number']
  @yards                = response["yards"]
  @touchdowns           = response["touchdowns"]
  @blk_fg_touchdowns    = response["blk_fg_touchdowns"]
  @blk_punt_touchdowns  = response["blk_punt_touchdowns"]
  @fg_return_touchdowns = response["fg_return_touchdowns"]
  @ez_rec_touchdowns    = response["ez_rec_touchdowns"]
end