Class: RiotKit::Services::Riot::FetchAccount

Inherits:
Base
  • Object
show all
Defined in:
lib/riot_kit/services/riot/fetch_account.rb

Instance Method Summary collapse

Methods inherited from Base

call, #call, steps

Constructor Details

#initialize(riot_id: nil, nickname: nil, client: nil, config: RiotKit.config) ⇒ FetchAccount

Returns a new instance of FetchAccount.



13
14
15
16
17
# File 'lib/riot_kit/services/riot/fetch_account.rb', line 13

def initialize(riot_id: nil, nickname: nil, client: nil, config: RiotKit.config)
  @riot_id_string = riot_id || nickname
  @client = client || Clients::Riot.new(config: config)
  @config = config
end