Class: Stattleship::Params::GameTimeParams

Inherits:
QueryParams
  • Object
show all
Defined in:
lib/stattleship/params/game_time_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

#interval_typeObject

Returns the value of attribute interval_type


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

def interval_type
  @interval_type
end

#onObject

Returns the value of attribute on


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

def on
  @on
end

#season_idObject

Returns the value of attribute season_id


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

def season_id
  @season_id
end

#sinceObject

Returns the value of attribute since


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

def since
  @since
end

#statusObject

Returns the value of attribute status


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

def status
  @status
end

#weekObject

Returns the value of attribute week


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

def week
  @week
end

Instance Method Details

#paramsObject


6
7
8
9
10
11
12
13
14
15
# File 'lib/stattleship/params/game_time_params.rb', line 6

def params
  {
    'season_id' => season_id,
    'interval_type' => interval_type,
    'status' => status,
    'on' => on,
    'since' => since,
    'week' => week,
  }
end