Class: Outrageous::Game

Inherits:
Base
  • Object
show all
Defined in:
lib/outrageous/game.rb

Constant Summary

Constants inherited from Base

Base::CHAMPION_VERSION, Base::GAME_VERSION, Base::LEAGUE_VERSION, Base::STATIC_DATA_VERSION, Base::STATS_VERSION, Base::SUMMONER_VERSION, Base::TEAM_VERSION

Instance Attribute Summary

Attributes inherited from Base

#api_key, #region, #response, #status, #version

Instance Method Summary collapse

Methods inherited from Base

#get, #initialize

Constructor Details

This class inherits a constructor from Outrageous::Base

Instance Method Details

#find(summoner_id, options = {}) ⇒ Object



3
4
5
# File 'lib/outrageous/game.rb', line 3

def find(summoner_id, options = {})
  get("/api/lol/#{region}/#{version || GAME_VERSION}/game/by-summoner/#{summoner_id}/recent", options)
end