module Mastodon::REST::Instances
Public Instance Methods
activity()
click to toggle source
Retrieve activity statistics for the current instance. Does not require authentication @return [Mastodon::Collection<Hash>]
# File lib/mastodon/rest/instances.rb, line 17 def activity perform_request_with_collection(:get, '/api/v1/instance/activity', {}, Hash) end
instance()
click to toggle source
Retrieve the current instance. Does not require authentication @return [Mastodon::Instance]
# File lib/mastodon/rest/instances.rb, line 11 def instance perform_request_with_object(:get, '/api/v1/instance', {}, Mastodon::Instance) end
peers()
click to toggle source
Retrieve domains of instances known to the current instance. Does not require authentication @return [Mastodon::Collection<String>]
# File lib/mastodon/rest/instances.rb, line 23 def peers perform_request_with_collection(:get, '/api/v1/instance/peers', {}, String) end