Class: Platforms::Yammer::Api::SupervisorMode

Inherits:
Base
  • Object
show all
Defined in:
lib/platforms/yammer/api/supervisor_mode.rb

Overview

Set supervisor mode in Yammer

Author:

  • Benjamin Elias

Since:

  • 0.1.0

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Platforms::Yammer::Api::Base

Instance Method Details

#toggle(options = {}, headers = {}) ⇒ Faraday::Response

Toggle supervisor mode

Parameters:

  • options (Hash) (defaults to: {})

    Options for the request

  • headers (Hash) (defaults to: {})

    Additional headers to send with the request

Returns:

  • (Faraday::Response)

    the API response

See Also:

Since:

  • 0.1.0



14
15
16
# File 'lib/platforms/yammer/api/supervisor_mode.rb', line 14

def toggle options={}, headers={}
  @connection.post "supervisor_mode/toggle.json", options, headers
end