Class: Stattleship::Params::RankingsParams

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

Instance Attribute Summary collapse

Attributes inherited from QueryParams

#page, #per_page, #season_id

Instance Method Summary collapse

Methods inherited from QueryParams

#query, #validate

Instance Attribute Details

#onObject

Returns the value of attribute on


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

def on
  @on
end

#placeObject

Returns the value of attribute place


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

def place
  @place
end

#rankingObject

Returns the value of attribute ranking


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

def ranking
  @ranking
end

Instance Method Details

#paramsObject


6
7
8
9
10
11
12
# File 'lib/stattleship/params/rankings_params.rb', line 6

def params
  {
    'on' => on,
    'place' => place,
    'ranking' => ranking,
  }
end