Sha256: 140e8cfc2b0bb4c32727aa5a2a3d0999784f9d45d630af3fc2b11fdbb4370f2c

Contents?: true

Size: 717 Bytes

Versions: 14

Compression:

Stored size: 717 Bytes

Contents

require_relative 'base'
module Taric
  module Operation
    module MatchHistory
      include Taric::Operation::Base

      MATCH_HISTORY_VERSION = 'v2.2'
      MATCH_HISTORY = Addressable::Template.new "#{BASE_URL_FN.(MATCH_HISTORY_VERSION)}/matchhistory/{summonerId}{?api_key,championIds,rankedQueues,beginIndex,endIndex}"

      # @see https://developer.riotgames.com/api/methods#!/966/3312
      def match_history(summoner_id:, champion_ids: nil, ranked_queues: nil, begin_index: nil, end_index: nil)
        response_for MATCH_HISTORY,
                     {summonerId: summoner_id, championIds: champion_ids, rankedQueues: ranked_queues, beginIndex: begin_index, endIndex: end_index}
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
taric-0.2.4 lib/taric/operation/match_history.rb
taric-0.2.2 lib/taric/operation/match_history.rb
taric-0.2.1 lib/taric/operation/match_history.rb
taric-0.2.0 lib/taric/operation/match_history.rb
taric-0.1.14 lib/taric/operation/match_history.rb
taric-0.1.13 lib/taric/operation/match_history.rb
taric-0.1.12 lib/taric/operation/match_history.rb
taric-0.1.11 lib/taric/operation/match_history.rb
taric-0.1.10 lib/taric/operation/match_history.rb
taric-0.1.9 lib/taric/operation/match_history.rb
taric-0.1.8 lib/taric/operation/match_history.rb
taric-0.1.7 lib/taric/operation/match_history.rb
taric-0.1.6 lib/taric/operation/match_history.rb
taric-0.1.5 lib/taric/operation/match_history.rb