Module: BWAPI::Client::Admin::Search

Included in:
BWAPI::Client::Admin
Defined in:
lib/bwapi/client/admin/search.rb

Overview

Search module for admin/search endpoints

Instance Method Summary collapse

Instance Method Details

#search_query_name(opts = {}) ⇒ Hash

Get a list of query names

Parameters:

  • opts (Hash) (defaults to: {})

    options hash of parameters

Options Hash (opts):

  • text (Integer)

    Text expression

Returns:

  • (Hash)

    List of query names



20
21
22
# File 'lib/bwapi/client/admin/search.rb', line 20

def search_query_name(opts = {})
  get 'admin/search/queryname', opts
end

#search_query_text(opts = {}) ⇒ Hash

Get a list of queries

Parameters:

  • opts (Hash) (defaults to: {})

    options hash of parameters

Options Hash (opts):

  • text (Integer)

    Text expression

Returns:

  • (Hash)

    List of queries



11
12
13
# File 'lib/bwapi/client/admin/search.rb', line 11

def search_query_text(opts = {})
  get 'admin/search/querytext', opts
end

#search_rule_text(opts = {}) ⇒ Hash

Get a list of rules

Parameters:

  • opts (Hash) (defaults to: {})

    options hash of parameters

Options Hash (opts):

  • text (Integer)

    Text expression

Returns:

  • (Hash)

    List of rules



29
30
31
# File 'lib/bwapi/client/admin/search.rb', line 29

def search_rule_text(opts = {})
  get 'admin/search/ruletext', opts
end