Module: GamesRadarApi::Client::Guides

Included in:
GamesRadarApi::Client
Defined in:
lib/games_radar_api/client/guides.rb

Instance Method Summary collapse

Instance Method Details

#game_guides(id, options = {:region=>'us',:page_num=>1,:page_size=>10}) ⇒ Object



10
11
12
13
14
# File 'lib/games_radar_api/client/guides.rb', line 10

def game_guides(id,options={:region=>'us',:page_num=>1,:page_size=>10})
  response = get("/game/guidesandfaqs/#{id}",options)
  self.total_rows = response.cheats.total_rows.to_i
  response.cheats.cheat
end

#guides(options = {:region=>'us',:platform=>'all',:genre=>'all',:game_name=>'',:page_num=>1,:page_size=>10,:sort=>'newest'}) ⇒ Object



4
5
6
7
8
# File 'lib/games_radar_api/client/guides.rb', line 4

def guides(options={:region=>'us',:platform=>'all',:genre=>'all',:game_name=>'',:page_num=>1,:page_size=>10,:sort=>'newest'})
   response = get('/guidesandfaqs',options)
   self.total_rows = response.cheats.total_rows.to_i
   response.cheats.cheat
end