Module: GamesRadarApi::Client::Guides
- Included in:
- GamesRadarApi::Client
- Defined in:
- lib/games_radar_api/client/guides.rb
Instance Method Summary collapse
- #game_guides(id, options = {:region=>'us',:page_num=>1,:page_size=>10}) ⇒ Object
- #guides(options = {:region=>'us',:platform=>'all',:genre=>'all',:game_name=>'',:page_num=>1,:page_size=>10,:sort=>'newest'}) ⇒ Object
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,={:region=>'us',:page_num=>1,:page_size=>10}) response = get("/game/guidesandfaqs/#{id}",) 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(={:region=>'us',:platform=>'all',:genre=>'all',:game_name=>'',:page_num=>1,:page_size=>10,:sort=>'newest'}) response = get('/guidesandfaqs',) self.total_rows = response.cheats.total_rows.to_i response.cheats.cheat end |