Sha256: 860aaa9d5b69ca4562d8b7a4eadf5632917396d38d86174bde02c82a096f9c8b

Contents?: true

Size: 633 Bytes

Versions: 5

Compression:

Stored size: 633 Bytes

Contents

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

      MATCH_VERSION = 'v2.2'
      MATCH = Addressable::Template.new "#{BASE_URL_FN.(MATCH_VERSION)}/match/{matchId}{?api_key,includeTimeline}"

      # Match data for id.
      #
      # @see https://developer.riotgames.com/api/methods#!/967/3313
      # @param id [Fixnum] id of match
      # @param include_timeline [Boolean] optional, true includes timestamps on events
      def match(id:, include_timeline: nil)
        response_for MATCH, {matchId: id, includeTimeline: include_timeline}
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
taric-0.1.9 lib/taric/operation/match.rb
taric-0.1.8 lib/taric/operation/match.rb
taric-0.1.7 lib/taric/operation/match.rb
taric-0.1.6 lib/taric/operation/match.rb
taric-0.1.5 lib/taric/operation/match.rb