Class: BlizzardApi::Hearthstone::Back
- Inherits:
-
GenericDataEndpoint
- Object
- Request
- Request
- GenericDataEndpoint
- BlizzardApi::Hearthstone::Back
- Defined in:
- lib/blizzard_api/hearthstone/game_data/back.rb
Overview
This class allows access to Hearthstone card data
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::Hearthstone.card
Constant Summary collapse
- VALID_SEARCH_OPTIONS =
Valid options for card search
%i[ cardBackCategory textFilter sort order ].freeze
Constants inherited from Request
Request::CACHE_DAY, Request::CACHE_HOUR, Request::CACHE_TRIMESTER
Constants included from ApiStandards
Instance Attribute Summary
Attributes inherited from Request
Instance Method Summary collapse
-
#search(search_options = {}, **options) ⇒ Hash
Returns an up-to-date list of all card backs matching the search criteria.
Methods inherited from GenericDataEndpoint
Methods inherited from Request
Methods inherited from Request
Constructor Details
This class inherits a constructor from BlizzardApi::Hearthstone::GenericDataEndpoint
Instance Method Details
#search(search_options = {}, **options) ⇒ Hash
Returns an up-to-date list of all card backs matching the search criteria. For more information about the
search parameters, see the Card Backs Guide.
in the configuration module
39 40 41 42 43 |
# File 'lib/blizzard_api/hearthstone/game_data/back.rb', line 39 def search( = {}, **) if .include? :validate_fields api_request "#{base_url(:community)}/cardbacks", **.merge().merge() end |