Class: Sportradar::Api::Football::StatPack::IntReturns
- Inherits:
-
Sportradar::Api::Football::StatPack
- Object
- Data
- Sportradar::Api::Football::StatPack
- Sportradar::Api::Football::StatPack::IntReturns
- Defined in:
- lib/sportradar/api/football/stat_pack/int_returns.rb
Instance Attribute Summary collapse
-
#avg_yards ⇒ Object
Returns the value of attribute avg_yards.
-
#longest ⇒ Object
Returns the value of attribute longest.
-
#longest_touchdown ⇒ Object
Returns the value of attribute longest_touchdown.
-
#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
#avg_yards ⇒ Object
Returns the value of attribute avg_yards.
4 5 6 |
# File 'lib/sportradar/api/football/stat_pack/int_returns.rb', line 4 def avg_yards @avg_yards end |
#longest ⇒ Object
Returns the value of attribute longest.
4 5 6 |
# File 'lib/sportradar/api/football/stat_pack/int_returns.rb', line 4 def longest @longest end |
#longest_touchdown ⇒ Object
Returns the value of attribute longest_touchdown.
4 5 6 |
# File 'lib/sportradar/api/football/stat_pack/int_returns.rb', line 4 def longest_touchdown @longest_touchdown end |
#returns ⇒ Object
Returns the value of attribute returns.
4 5 6 |
# File 'lib/sportradar/api/football/stat_pack/int_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/int_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/int_returns.rb', line 4 def yards @yards end |
Instance Method Details
#set_stats ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/sportradar/api/football/stat_pack/int_returns.rb', line 6 def set_stats @returns = response["returns"] @yards = response["yards"] @avg_yards = response["avg_yards"] @touchdowns = response["touchdowns"] @longest = response["longest"] @longest_touchdown = response["longest_touchdown"] end |