Module: Compass::Configuration::Client

Includes:
ActiveSupport::Configurable
Defined in:
lib/compass/configuration/client.rb

Instance Method Summary collapse

Instance Method Details

#auth_expires_atProc

Proc to determine the authentication expiration time.

Returns:

  • (Proc)

    The authentication expiration time proc.



23
# File 'lib/compass/configuration/client.rb', line 23

config_accessor :auth_expires_at, default: ->(**) { }

#auth_tokenProc

Authentication configuration

I.e.:

config.client.auth_token = -> { "1234567890" }
config.client.auth_expires_at = -> { 1.hour.from_now }

Returns:

  • (Proc)

    The authentication token proc.



19
# File 'lib/compass/configuration/client.rb', line 19

config_accessor :auth_token, default: ->(**) { }