Module: Mastodon::REST::Instances
Instance Method Summary collapse
-
#instance ⇒ Mastodon::Instance
Retrieve the current instance.
Methods included from Utils
#array_param, #perform_request, #perform_request_with_collection, #perform_request_with_object
Instance Method Details
#instance ⇒ Mastodon::Instance
Retrieve the current instance. Does not require authentication
13 14 15 16 |
# File 'lib/mastodon/rest/instances.rb', line 13 def instance perform_request_with_object(:get, '/api/v1/instance', {}, Mastodon::Instance) end |