Class: Stattleship::Params::PlayersParams

Inherits:
QueryParams
  • Object
show all
Defined in:
lib/stattleship/params/players_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

#birth_dateObject

Returns the value of attribute birth_date


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

def birth_date
  @birth_date
end

#team_idObject

Returns the value of attribute team_id


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

def team_id
  @team_id
end

Instance Method Details

#paramsObject


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

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