class BlizzardApi::Hearthstone::Back

This class allows access to Hearthstone card data

@see develop.battle.net/documentation/api-reference/hearthstone-game-data-api @see develop.battle.net/documentation/hearthstone/guides/card-backs

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

api_instance = BlizzardApi::Hearthstone.card

Constants

VALID_SEARCH_OPTIONS

Valid options for card search

Public Instance Methods

Protected Instance Methods

endpoint_setup() click to toggle source
# File lib/blizzard_api/hearthstone/game_data/back.rb, line 53
def endpoint_setup
  @endpoint = 'cardbacks'
  @ttl = CACHE_TRIMESTER
end
validate_search_options(search_options) click to toggle source
# File lib/blizzard_api/hearthstone/game_data/back.rb, line 47
def validate_search_options(search_options)
  search_options.each do |field|
    raise ArgumentError, "Unrecognized search option #{field}" unless VALID_SEARCH_OPTIONS.include? field
  end
end