Class: BlizzardApi::OverwatchLeague::Matches

Inherits:
Request show all
Defined in:
lib/blizzard_api_rb/overwatch_league/community/matches.rb

Overview

This class allows access to OWL2 match data

You can get an instance of this class using the default region as follows:

api_instance = BlizzardApi::OverwatchLeague.matches

Constant Summary

Constants inherited from Request

Request::CACHE_DAY, Request::CACHE_HOUR, Request::CACHE_TRIMESTER

Constants included from ApiStandards

ApiStandards::BASE_URLS

Instance Attribute Summary

Attributes inherited from Request

#mode, #region

Instance Method Summary collapse

Methods inherited from Request

#initialize

Methods inherited from Request

#initialize

Constructor Details

This class inherits a constructor from BlizzardApi::OverwatchLeague::Request

Instance Method Details

#get(match_id, **options) ⇒ Object

Returns match information

Parameters:

  • options (Hash)

    a customizable set of options

Options Hash (**options):

  • :completed (Boolean)

    Should return completed quests



17
18
19
# File 'lib/blizzard_api_rb/overwatch_league/community/matches.rb', line 17

def get(match_id, **options)
  api_request "#{base_url(:community)}/v1/matches/#{match_id}", **{ ttl: CACHE_DAY }.merge(options)
end