Class: Stattleship::Params::LineUpsParams
- Inherits:
-
GameTimeParams
- Object
- QueryParams
- GameTimeParams
- Stattleship::Params::LineUpsParams
- Defined in:
- lib/stattleship/params/line_ups_params.rb
Instance Attribute Summary collapse
-
#game_id ⇒ Object
Returns the value of attribute game_id.
-
#inning ⇒ Object
Returns the value of attribute inning.
-
#player_id ⇒ Object
Returns the value of attribute player_id.
-
#team_id ⇒ Object
Returns the value of attribute 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
#game_id ⇒ Object
Returns the value of attribute game_id.
4 5 6 |
# File 'lib/stattleship/params/line_ups_params.rb', line 4 def game_id @game_id end |
#inning ⇒ Object
Returns the value of attribute inning.
4 5 6 |
# File 'lib/stattleship/params/line_ups_params.rb', line 4 def inning @inning end |
#player_id ⇒ Object
Returns the value of attribute player_id.
4 5 6 |
# File 'lib/stattleship/params/line_ups_params.rb', line 4 def player_id @player_id end |
#team_id ⇒ Object
Returns the value of attribute team_id.
4 5 6 |
# File 'lib/stattleship/params/line_ups_params.rb', line 4 def team_id @team_id end |
Instance Method Details
#params ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/stattleship/params/line_ups_params.rb', line 9 def params super.merge('game_id' => game_id, 'team_id' => team_id, 'player_id' => player_id, 'inning' => inning, ) end |