Class: Stattleship::Params::FootballTeamStatsParams

Inherits:
FootballStatsParams show all
Defined in:
lib/stattleship/params/football_team_stats_params.rb

Instance Attribute Summary

Attributes inherited from StatsParams

#game_id, #player_id, #stat, #team_id, #type

Attributes inherited from GameTimeParams

#interval_type, #on, #season_id, #since, #status, #week

Attributes inherited from QueryParams

#page, #per_page, #season_id

Instance Method Summary collapse

Methods inherited from QueryParams

#query, #validate

Instance Method Details

#paramsObject


4
5
6
7
# File 'lib/stattleship/params/football_team_stats_params.rb', line 4

def params
  super.merge('type' => 'football_team_stat').
    delete_if { |key| key == 'player_id' }
end