Class: Stattleship::Params::ScoringPlaysParams
- Inherits:
-
GameLogsParams
- Object
- QueryParams
- GameTimeParams
- GameLogsParams
- Stattleship::Params::ScoringPlaysParams
- Defined in:
- lib/stattleship/params/scoring_plays_params.rb
Direct Known Subclasses
BaseballScoringPlaysParams, BasketballScoringPlaysParams, FootballScoringPlaysParams, HockeyScoringPlaysParams
Instance Attribute Summary collapse
-
#scoring_method ⇒ Object
Returns the value of attribute scoring_method.
-
#scoring_type ⇒ Object
Returns the value of attribute scoring_type.
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
#scoring_method ⇒ Object
Returns the value of attribute scoring_method.
4 5 6 |
# File 'lib/stattleship/params/scoring_plays_params.rb', line 4 def scoring_method @scoring_method end |
#scoring_type ⇒ Object
Returns the value of attribute scoring_type.
4 5 6 |
# File 'lib/stattleship/params/scoring_plays_params.rb', line 4 def scoring_type @scoring_type end |
Instance Method Details
#params ⇒ Object
6 7 8 9 |
# File 'lib/stattleship/params/scoring_plays_params.rb', line 6 def params super.merge('scoring_method' => scoring_method, 'scoring_type' => scoring_type) end |