Module: PUBG::Client::Match

Included in:
PUBG::Client
Defined in:
lib/pubg/client/match.rb

Overview

Methods for Match API

Instance Method Summary collapse

Instance Method Details

#match(id) ⇒ Object

Find a single match by ID

Examples:

Find match

client.match('967f6581-31e2-4402-9661-8f020c68d87b')

Parameters:

  • id (String)

    Match ID

See Also:



13
14
15
16
# File 'lib/pubg/client/match.rb', line 13

def match(id)
  path = ['shards', @region, 'matches', id].join('/')
  get(path)
end