Class: RiotKit::Services::Riot::FetchAvgMatchesPerWeek
- 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
-
#initialize(puuid:, client: nil, config: RiotKit.config) ⇒ FetchAvgMatchesPerWeek
constructor
A new instance of FetchAvgMatchesPerWeek.
Methods inherited from Base
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 |