Class: Stattleship::Params::TeamOutcomeStreaksParams

Inherits:
QueryParams
  • Object
show all
Defined in:
lib/stattleship/params/team_outcome_streaks_params.rb

Instance Attribute Summary collapse

Attributes inherited from QueryParams

#page, #per_page

Instance Method Summary collapse

Methods inherited from QueryParams

#query, #validate

Instance Attribute Details

#currentObject

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_typeObject

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

#outcomeObject

Returns the value of attribute outcome


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

def outcome
  @outcome
end

#rankObject

Returns the value of attribute rank


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

def rank
  @rank
end

#rankedObject

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_idObject

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_lengthObject

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_idObject

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

#paramsObject


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