Module: Mastodon::REST::Instances

Includes:
Utils
Included in:
API
Defined in:
lib/mastodon/rest/instances.rb

Instance Method Summary collapse

Methods included from Utils

#array_param, #perform_request, #perform_request_with_collection, #perform_request_with_object

Instance Method Details

#instanceMastodon::Instance

Retrieve the current instance. Does not require authentication

Returns:



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