Module: Tacokit::Client::Searches

Included in:
Tacokit::Client
Defined in:
lib/tacokit/client/searches.rb

Instance Method Summary collapse

Instance Method Details

#search(query, options = {}) ⇒ Object

GET /1/search


5
6
7
# File 'lib/tacokit/client/searches.rb', line 5

def search(query, options = {})
  get search_path, options.merge(query: query)
end

#search_members(query, options = {}) ⇒ Object

GET /1/search/members


10
11
12
# File 'lib/tacokit/client/searches.rb', line 10

def search_members(query, options = {})
  get search_path("members"), options.merge(query: query)
end

#search_path(*paths) ⇒ Object


14
15
16
# File 'lib/tacokit/client/searches.rb', line 14

def search_path(*paths)
  path_join "search", *paths
end