Class: Stattleship::Params::PlayersParams
- Inherits:
-
QueryParams
- Object
- QueryParams
- Stattleship::Params::PlayersParams
- Defined in:
- lib/stattleship/params/players_params.rb
Direct Known Subclasses
BaseballPlayersParams, BasketballPlayersParams, FootballPlayersParams, HockeyPlayersParams
Instance Attribute Summary collapse
-
#birth_date ⇒ Object
Returns the value of attribute birth_date.
-
#team_id ⇒ Object
Returns the value of attribute team_id.
Attributes inherited from QueryParams
Instance Method Summary collapse
Methods inherited from QueryParams
Instance Attribute Details
#birth_date ⇒ Object
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_id ⇒ Object
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
#params ⇒ Object
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 |