Class: Stattleship::Params::BaseballTeamStatsParams

Inherits:
BaseballStatsParams show all
Defined in:
lib/stattleship/params/baseball_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/baseball_team_stats_params.rb', line 4

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