Method: HalcyonAPI::Client#match

Defined in:
lib/halcyon_api/client.rb

#match(match_id) ⇒ OpenStruct

Gets data for a single match

Examples:

Get a single match

client = VaingloryAPI::Client.new('API_KEY', 'na')
client.match('MATCH_ID')

Parameters:

  • match_id (String)

    the ID of the requested match

Returns:

  • (OpenStruct)

    the response and metadata

See Also:



88
89
90
# File 'lib/halcyon_api/client.rb', line 88

def match(match_id)
  get_request(shard_endpoint_uri("matches/#{match_id}"))
end