Class: RiotKit::Services::Riot::FetchAvgMatchesPerWeek

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

Constant Summary collapse

WEEKS =
4
SECONDS_PER_WEEK =
60 * 60 * 24 * 7

Instance Method Summary collapse

Methods inherited from Base

call, #call, steps

Constructor Details

#initialize(puuid:, client: nil, config: RiotKit.config) ⇒ FetchAvgMatchesPerWeek

Returns a new instance of FetchAvgMatchesPerWeek.



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

def initialize(puuid:, client: nil, config: RiotKit.config)
  @puuid = puuid
  @client = client || Clients::Riot.new(config: config)
  @config = config
  @match_ids = []
end