Class: RiotKit::Services::Riot::FetchAccount
- Defined in:
- lib/riot_kit/services/riot/fetch_account.rb
Instance Method Summary collapse
-
#initialize(riot_id: nil, nickname: nil, client: nil, config: RiotKit.config) ⇒ FetchAccount
constructor
A new instance of FetchAccount.
Methods inherited from Base
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 |