Sha256: 1a2970d93a781180fe1accb403176a217263a6a24695eea47ce318e8accd0fdc

Contents?: true

Size: 668 Bytes

Versions: 8

Compression:

Stored size: 668 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
      # @return match data for id.
      def match(id:, include_timeline: nil)
        response_for MATCH, {matchId: id, includeTimeline: include_timeline}
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
taric-0.2.2 lib/taric/operation/match.rb
taric-0.2.1 lib/taric/operation/match.rb
taric-0.2.0 lib/taric/operation/match.rb
taric-0.1.14 lib/taric/operation/match.rb
taric-0.1.13 lib/taric/operation/match.rb
taric-0.1.12 lib/taric/operation/match.rb
taric-0.1.11 lib/taric/operation/match.rb
taric-0.1.10 lib/taric/operation/match.rb