Class: Sportradar::Api::Football::StatPack::MiscReturns
- Inherits:
-
Sportradar::Api::Football::StatPack
- Object
- Data
- Sportradar::Api::Football::StatPack
- Sportradar::Api::Football::StatPack::MiscReturns
- Defined in:
- lib/sportradar/api/football/stat_pack/misc_returns.rb
Instance Attribute Summary collapse
-
#blk_fg_touchdowns ⇒ Object
Returns the value of attribute blk_fg_touchdowns.
-
#blk_punt_touchdowns ⇒ Object
Returns the value of attribute blk_punt_touchdowns.
-
#ez_rec_touchdowns ⇒ Object
Returns the value of attribute ez_rec_touchdowns.
-
#fg_return_touchdowns ⇒ Object
Returns the value of attribute fg_return_touchdowns.
-
#returns ⇒ Object
Returns the value of attribute returns.
-
#touchdowns ⇒ Object
Returns the value of attribute touchdowns.
-
#yards ⇒ Object
Returns the value of attribute yards.
Attributes inherited from Sportradar::Api::Football::StatPack
#id, #name, #player, #players, #position, #response
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
#blk_fg_touchdowns ⇒ Object
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_touchdowns ⇒ Object
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_touchdowns ⇒ Object
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_touchdowns ⇒ Object
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 |
#returns ⇒ Object
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 |
#touchdowns ⇒ Object
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 |
#yards ⇒ Object
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_stats ⇒ Object
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 |