Class: BlizzardApi::Wow::ModifiedCrafting

Inherits:
GenericDataEndpoint show all
Defined in:
lib/blizzard_api/wow/game_data/modified_crafting.rb

Overview

This class allows access to World of Warcraft professions

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

api_instance = BlizzardApi::Wow.modified_crafting

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

#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

#categories(**options) ⇒ Object

Fetch modified crafting category index

Parameters:

  • options (Hash)

    a customizable set of options

Options Hash (**options):

  • :completed (Boolean)

    Should return completed quests



23
24
25
# File 'lib/blizzard_api/wow/game_data/modified_crafting.rb', line 23

def categories(**options)
  api_request "#{base_url(:game_data)}/modified-crafting/category/index", **default_options.merge(options)
end

#category(id, **options) ⇒ Hash

Fetch a modified crafting category

in the configuration module

Parameters:

  • id (Integer)

    Modified crafting category 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



35
36
37
# File 'lib/blizzard_api/wow/game_data/modified_crafting.rb', line 35

def category(id, **options)
  api_request "#{base_url(:game_data)}/modified-crafting/category/#{id}", **default_options.merge(options)
end

#get(_id, **_options) ⇒ Object



15
16
17
# File 'lib/blizzard_api/wow/game_data/modified_crafting.rb', line 15

def get(_id, **_options)
  raise BlizzardApi::ApiException, 'This endpoint does not have a get method'
end

#slot_type(id, **options) ⇒ Hash

Fetch a modified crafting slot type

in the configuration module

Parameters:

  • id (Integer)

    Modified crafting slot type 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



55
56
57
# File 'lib/blizzard_api/wow/game_data/modified_crafting.rb', line 55

def slot_type(id, **options)
  api_request "#{base_url(:game_data)}/modified-crafting/reagent-slot-type/#{id}", **default_options.merge(options)
end

#slot_types(**options) ⇒ Object

Fetch modified crafting slot type index

Parameters:

  • options (Hash)

    a customizable set of options

Options Hash (**options):

  • :completed (Boolean)

    Should return completed quests



43
44
45
# File 'lib/blizzard_api/wow/game_data/modified_crafting.rb', line 43

def slot_types(**options)
  api_request "#{base_url(:game_data)}/modified-crafting/reagent-slot-type/index", **default_options.merge(options)
end