Class: Stattleship::Params::PenaltiesParams
- Inherits:
-
GameLogsParams
- Object
- QueryParams
- GameTimeParams
- GameLogsParams
- Stattleship::Params::PenaltiesParams
- Defined in:
- lib/stattleship/params/penalties_params.rb
Direct Known Subclasses
BaseballPenaltiesParams, BasketballPenaltiesParams, FootballPenaltiesParams, HockeyPenaltiesParams
Instance Attribute Summary collapse
-
#penalty ⇒ Object
Returns the value of attribute penalty.
Attributes inherited from GameLogsParams
#game_id, #player_id, #team_id
Attributes inherited from GameTimeParams
#interval_type, #on, #season_id, #since, #status, #week
Attributes inherited from QueryParams
Instance Method Summary collapse
Methods inherited from QueryParams
Instance Attribute Details
#penalty ⇒ Object
Returns the value of attribute penalty.
4 5 6 |
# File 'lib/stattleship/params/penalties_params.rb', line 4 def penalty @penalty end |
Instance Method Details
#params ⇒ Object
6 7 8 |
# File 'lib/stattleship/params/penalties_params.rb', line 6 def params super.merge('penalty' => penalty) end |