Class: BombDefuser::GameList

Inherits:
Object
  • Object
show all
Extended by:
ResourceList
Defined in:
lib/bomb_defuser/game_list.rb

Class Attribute Summary collapse

Class Method Summary collapse

Methods included from ResourceList

fetch

Class Attribute Details

.platformsObject

Returns the value of attribute platforms.



9
10
11
# File 'lib/bomb_defuser/game_list.rb', line 9

def platforms
  @platforms
end

Class Method Details

.include_additional_parametersObject



12
13
14
15
# File 'lib/bomb_defuser/game_list.rb', line 12

def self.include_additional_parameters
  self.platforms ||= []
  params[:platforms] = platforms.join(",") unless platforms.empty?
end