Class: RiotGamesApi::LOL::Resource::Game
- Defined in:
- lib/riot_games_api/lol/resource/game.rb
Instance Method Summary collapse
-
#initialize(connection, region) ⇒ Game
constructor
A new instance of Game.
- #recent(summoner_id) ⇒ Object
Constructor Details
#initialize(connection, region) ⇒ Game
Returns a new instance of Game.
5 6 7 8 |
# File 'lib/riot_games_api/lol/resource/game.rb', line 5 def initialize(connection, region) super @version = 'v1.3' end |
Instance Method Details
#recent(summoner_id) ⇒ Object
10 11 12 13 |
# File 'lib/riot_games_api/lol/resource/game.rb', line 10 def recent(summoner_id) recent_game = get(resource_path(summoner_id), @version) RiotGamesApi::LOL::Model::Game::RecentGame.new recent_game end |