Class: Sportradar::Api::Football::Nfl::Team
- Inherits:
-
Team
- Object
- Data
- Team
- Sportradar::Api::Football::Nfl::Team
show all
- 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
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, #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
Instance Method Details
#nfl_season ⇒ Object
24
25
26
|
# File 'lib/sportradar/api/football/nfl/team.rb', line 24
def nfl_season
@type || default_season
end
|
#path_season_stats(year = season_year, season = nfl_season) ⇒ Object
17
18
19
|
# File 'lib/sportradar/api/football/nfl/team.rb', line 17
def path_season_stats(year = season_year, season = nfl_season)
"seasontd/#{year}/#{nfl_season}/teams/#{ id }/statistics"
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
|