Module: Mastodon::REST::Search
Instance Method Summary collapse
-
#search(query, options = {}) ⇒ Mastodon::Results
Search for content.
Methods included from Utils
#array_param, #perform_request, #perform_request_with_collection, #perform_request_with_object
Instance Method Details
#search(query, options = {}) ⇒ Mastodon::Results
Search for content
15 16 17 |
# File 'lib/mastodon/rest/search.rb', line 15 def search(query, = {}) perform_request_with_object(:get, '/api/v2/search', { q: query }.merge(), Mastodon::Results) end |