Class: Sportradar::Api::Football::Nfl::Team
- Defined in:
- lib/sportradar/api/football/nfl/team.rb
Instance Attribute Summary
Attributes inherited from Team
#alias, #full_name, #id, #market, #name, #player_stats, #records, #remaining_timeouts, #response, #season, #seed, #stats, #team_stats, #type, #used_timeouts, #venue
Instance Method Summary collapse
- #api ⇒ Object
- #nfl_season ⇒ Object
- #player_class ⇒ Object
- #players ⇒ Object (also: #roster)
Methods inherited from Team
#add_game, #games, #get_roster, #get_season_stats, #handle_names, #ingest_roster, #ingest_season_stats, #initialize, #parse_players, #parse_records, #parse_season_stats, #path_base, #path_base_stats, #path_roster, #path_season_stats, #queue_roster, #queue_season_stats, #record, #season_year, #timeouts, #update, #update_player_stats
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::Team
Instance Method Details
#api ⇒ Object
17 18 19 |
# File 'lib/sportradar/api/football/nfl/team.rb', line 17 def api @api || Sportradar::Api::Football::Nfl::Api.new end |
#nfl_season ⇒ Object
20 21 22 |
# File 'lib/sportradar/api/football/nfl/team.rb', line 20 def nfl_season @type || default_season end |
#player_class ⇒ Object
13 14 15 |
# File 'lib/sportradar/api/football/nfl/team.rb', line 13 def player_class Player end |
#players ⇒ Object Also known as: roster
7 8 9 10 |
# File 'lib/sportradar/api/football/nfl/team.rb', line 7 def players get_roster if @players_hash.empty? @players_hash.values end |