module Tacokit::Client::Searches
Methods for the Search API @see developers.trello.com/advanced-reference/search
Public Instance Methods
search(query, options = {})
click to toggle source
Search across resources 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 any resource with query “technology”
Tacokit.search("technology") #=> Tacokit::Collection
@example Search for cards with query “music”
Tacokit.search("music", model_types: "cards") #=> Tacokit::Collection
@see developers.trello.com/advanced-reference/search#get-1-search
# File lib/tacokit/client/searches.rb, line 15 def search(query, options = {}) get search_path, options.merge(query: query) end
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