Class: Stattleship::Params::AtBatsParams

Inherits:
GameTimeParams show all
Defined in:
lib/stattleship/params/at_bats_params.rb

Instance Attribute Summary collapse

Attributes inherited from GameTimeParams

#interval_type, #on, #season_id, #since, #status, #week

Attributes inherited from QueryParams

#page, #per_page, #season_id

Instance Method Summary collapse

Methods inherited from QueryParams

#query, #validate

Instance Attribute Details

#game_idObject

Returns the value of attribute game_id


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

def game_id
  @game_id
end

#hit_locationObject

Returns the value of attribute hit_location


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

def hit_location
  @hit_location
end

#hit_typeObject

Returns the value of attribute hit_type


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

def hit_type
  @hit_type
end

#hitter_idObject

Returns the value of attribute hitter_id


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

def hitter_id
  @hitter_id
end

#hitter_team_idObject

Returns the value of attribute hitter_team_id


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

def hitter_team_id
  @hitter_team_id
end

#inningObject

Returns the value of attribute inning


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

def inning
  @inning
end

#team_idObject

Returns the value of attribute team_id


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

def team_id
  @team_id
end

Instance Method Details

#paramsObject


12
13
14
15
16
17
18
19
20
# File 'lib/stattleship/params/at_bats_params.rb', line 12

def params
  super.merge('game_id' => game_id,
              'hitter_id' => hitter_id,
              'hitter_team_id' => hitter_team_id,
              'inning' => inning,
              'hit_location' => hit_location,
              'hit_type' => hit_type,
             )
end