module Tacokit::Client::Searches

Methods for the Search API @see developers.trello.com/advanced-reference/search

Public Instance Methods

search_members(query, options = {}) click to toggle source

Search members with a query @param query [String] the text of the search query @param options [Hash] options to retrieve the search results with @return the search results @example Search for members with query “Marsha”

Tacokit.search("Marsha") #=> Tacokit::Collection<Member>
# File lib/tacokit/client/searches.rb, line 25
def search_members(query, options = {})
  get search_path("members"), options.merge(query: query)
end

Private Instance Methods

search_path(*paths) click to toggle source
# File lib/tacokit/client/searches.rb, line 31
def search_path(*paths)
  path_join "search", *paths
end