Class: Stattleship::Params::ScoringPlaysParams

Inherits:
GameLogsParams show all
Defined in:
lib/stattleship/params/scoring_plays_params.rb

Instance Attribute Summary collapse

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

#page, #per_page, #season_id

Instance Method Summary collapse

Methods inherited from QueryParams

#query, #validate

Instance Attribute Details

#scoring_methodObject

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_typeObject

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

#paramsObject


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