Sha256: 765dcb502a0076fd800d7b78bbfbec31d39c980ea11b3a197dd05664a01be1dd

Contents?: true

Size: 670 Bytes

Versions: 6

Compression:

Stored size: 670 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#!/1027/3483
      # @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

6 entries across 6 versions & 1 rubygems

Version Path
taric-0.4.0 lib/taric/operation/match.rb
taric-0.3.4 lib/taric/operation/match.rb
taric-0.3.3 lib/taric/operation/match.rb
taric-0.3.1 lib/taric/operation/match.rb
taric-0.3.0 lib/taric/operation/match.rb
taric-0.2.4 lib/taric/operation/match.rb