Class: Stattleship::Params::InjuriesParams

Inherits:
QueryParams
  • Object
show all
Defined in:
lib/stattleship/params/injuries_params.rb

Instance Attribute Summary collapse

Attributes inherited from QueryParams

#page, #per_page, #season_id

Instance Method Summary collapse

Methods inherited from QueryParams

#query, #validate

Instance Attribute Details

#team_idObject

Returns the value of attribute team_id


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

def team_id
  @team_id
end

Instance Method Details

#paramsObject


6
7
8
# File 'lib/stattleship/params/injuries_params.rb', line 6

def params
  super.merge('team_id' => team_id)
end