Module: BlizzardApi::Wow::Searchable
- Included in:
- AzeriteEssence, ConnectedRealm, Creature, Item, Media, Mount, Realm, Spell
- Defined in:
- lib/blizzard_api_rb/wow/search/search_request.rb
Overview
Added search support to an endpoint
Instance Method Summary collapse
-
#search(page = 1, page_size = 100, **options) {|search_options| ... } ⇒ Hash
Fetch data based on search criteria.
Instance Method Details
#search(page = 1, page_size = 100, **options) {|search_options| ... } ⇒ Hash
Fetch data based on search criteria
in the configuration module
16 17 18 19 20 21 |
# File 'lib/blizzard_api_rb/wow/search/search_request.rb', line 16 def search(page = 1, page_size = 100, **) = SearchComposer.new(page, page_size) yield if block_given? api_request "#{endpoint_uri(nil, :search)}?#{.to_search_query}", **.merge() end |