Class: BlizzardApi::Wow::MythicKeystoneAffix

Inherits:
GenericDataEndpoint show all
Defined in:
lib/blizzard_api_rb/wow/game_data/mythic_keystone_affix.rb

Overview

This class allows access to World of Warcraft mythic keystone affixes

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

api_instance = BlizzardApi::Wow.mythic_keystone_affix

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 GenericDataEndpoint

#get, #index, setup

Methods inherited from Request

#initialize

Methods inherited from Request

#initialize

Constructor Details

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

Instance Method Details

#media(id, **options) ⇒ Hash

Fetch media for one of the affixes listed by the GenericDataEndpoint#index using its id

in the configuration module

Parameters:

  • id (Integer)

    Keystone affix id

  • options (Hash)

    a customizable set of options

Options Hash (**options):

  • :completed (Boolean)

    Should return completed quests

Returns:

  • (Hash)

    API Response. The actual type of the returned object depends on the format option



23
24
25
# File 'lib/blizzard_api_rb/wow/game_data/mythic_keystone_affix.rb', line 23

def media(id, **options)
  api_request "#{base_url(:media)}/keystone-affix/#{id}", **default_options.merge(options)
end