Class: RiotKit::Services::Riot::MatchIds

Inherits:
Base
  • Object
show all
Includes:
Helpers::Riot::MatchHelpers
Defined in:
lib/riot_kit/services/riot/match_ids.rb

Constant Summary

Constants included from Helpers::Riot::MatchHelpers

Helpers::Riot::MatchHelpers::FILTERS, Helpers::Riot::MatchHelpers::QUEUE_ID, Helpers::Riot::MatchHelpers::QUEUE_LABEL

Instance Method Summary collapse

Methods included from Helpers::Riot::MatchHelpers

#cs_per_minute, #cs_total_for, #item_ids_for, #queue_label_for

Methods inherited from Base

call, #call, steps

Constructor Details

#initialize(nickname:, filter: 'ranked', client: nil, config: RiotKit.config) ⇒ MatchIds

Returns a new instance of MatchIds.



15
16
17
18
19
20
21
# File 'lib/riot_kit/services/riot/match_ids.rb', line 15

def initialize(nickname:, filter: 'ranked', client: nil, config: RiotKit.config)
  @nickname = nickname
  @filter = filter.to_s
  @client = client || Clients::Riot.new(config: config)
  @config = config
  @result = []
end