Class: LeagueOfLegends::Request::Game::BySummoner::Recent

Inherits:
Base
  • Object
show all
Defined in:
lib/league_of_legends/request/game/by_summoner/recent.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#options

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#api_key, default_options, #region, #response, version

Constructor Details

#initialize(api, summoner_id, options = {}) ⇒ Recent



11
12
13
14
# File 'lib/league_of_legends/request/game/by_summoner/recent.rb', line 11

def initialize api, summoner_id, options = {}
  super(api, options)
  @summoner_id = summoner_id
end

Instance Attribute Details

#summoner_idObject (readonly)

Returns the value of attribute summoner_id.



9
10
11
# File 'lib/league_of_legends/request/game/by_summoner/recent.rb', line 9

def summoner_id
  @summoner_id
end

Class Method Details

.dto_classObject



16
17
18
# File 'lib/league_of_legends/request/game/by_summoner/recent.rb', line 16

def self.dto_class
  ::LeagueOfLegends::DTO::RecentGames
end