Class: Stattleship::Params::TeamOutcomeStreaksParams
- Inherits:
-
QueryParams
- Object
- QueryParams
- Stattleship::Params::TeamOutcomeStreaksParams
- Defined in:
- lib/stattleship/params/team_outcome_streaks_params.rb
Direct Known Subclasses
BaseballTeamOutcomeStreaksParams, BasketballTeamOutcomeStreaksParams, FootballTeamOutcomeStreaksParams, HockeyTeamOutcomeStreaksParams
Instance Attribute Summary collapse
-
#current ⇒ Object
Returns the value of attribute current.
-
#interval_type ⇒ Object
Returns the value of attribute interval_type.
-
#outcome ⇒ Object
Returns the value of attribute outcome.
-
#rank ⇒ Object
Returns the value of attribute rank.
-
#ranked ⇒ Object
Returns the value of attribute ranked.
-
#season_id ⇒ Object
Returns the value of attribute season_id.
-
#streak_length ⇒ Object
Returns the value of attribute streak_length.
-
#team_id ⇒ Object
Returns the value of attribute team_id.
Attributes inherited from QueryParams
Instance Method Summary collapse
Methods inherited from QueryParams
Instance Attribute Details
#current ⇒ Object
Returns the value of attribute current.
4 5 6 |
# File 'lib/stattleship/params/team_outcome_streaks_params.rb', line 4 def current @current end |
#interval_type ⇒ Object
Returns the value of attribute interval_type.
4 5 6 |
# File 'lib/stattleship/params/team_outcome_streaks_params.rb', line 4 def interval_type @interval_type end |
#outcome ⇒ Object
Returns the value of attribute outcome.
4 5 6 |
# File 'lib/stattleship/params/team_outcome_streaks_params.rb', line 4 def outcome @outcome end |
#rank ⇒ Object
Returns the value of attribute rank.
4 5 6 |
# File 'lib/stattleship/params/team_outcome_streaks_params.rb', line 4 def rank @rank end |
#ranked ⇒ Object
Returns the value of attribute ranked.
4 5 6 |
# File 'lib/stattleship/params/team_outcome_streaks_params.rb', line 4 def ranked @ranked end |
#season_id ⇒ Object
Returns the value of attribute season_id.
4 5 6 |
# File 'lib/stattleship/params/team_outcome_streaks_params.rb', line 4 def season_id @season_id end |
#streak_length ⇒ Object
Returns the value of attribute streak_length.
4 5 6 |
# File 'lib/stattleship/params/team_outcome_streaks_params.rb', line 4 def streak_length @streak_length end |
#team_id ⇒ Object
Returns the value of attribute team_id.
4 5 6 |
# File 'lib/stattleship/params/team_outcome_streaks_params.rb', line 4 def team_id @team_id end |
Instance Method Details
#params ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/stattleship/params/team_outcome_streaks_params.rb', line 12 def params super.merge('current' => current, 'interval_type' => interval_type, 'outcome' => outcome, 'rank' => rank, 'ranked' => ranked, 'season_id' => season_id, 'streak_length' => streak_length, 'team_id' => team_id) end |