Class: Platforms::Yammer::Configuration

Inherits:
Object
  • Object
show all
Includes:
ActiveSupport::Configurable
Defined in:
lib/platforms/yammer/configuration.rb

Overview

The class which stores the gem’s configuration Should only store Yammer configuration options, other configuration options should be made in core.

Author:

  • Benjamin Elias

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#api_baseString

The base Yammer URL for API requests. Defaults to www.yammer.com/api/v1

Returns:

  • (String)

    the base Yammer URL

Since:

  • 0.1.0



65
66
67
# File 'lib/platforms/yammer/configuration.rb', line 65

config_accessor(:api_base, instance_reader: false) do
  'https://www.yammer.com/api/v1'
end

#client_idString

The default client_id, if no saved Certificate exists. A saved Certificate will be used in preference to this default.

Returns:

  • (String)

    the default client_id

Since:

  • 0.1.0



35
# File 'lib/platforms/yammer/configuration.rb', line 35

config_accessor(:client_id, instance_reader: false)

#client_secretString

The default client_secret, if no saved Certificate exists. A saved Certificate will be used in preference to this default.

Returns:

  • (String)

    the default client_secret

Since:

  • 0.1.0



50
# File 'lib/platforms/yammer/configuration.rb', line 50

config_accessor(:client_secret, instance_reader: false)