Module: ContextIO::Authentication Private

Included in:
ContextIO
Defined in:
lib/context-io/authentication.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Methods related to authentication and configuration.

API:

  • private

Instance Method Summary collapse

Instance Method Details

#authenticated?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns Whether authentication details are configured or not.

Returns:

  • Whether authentication details are configured or not.

API:

  • private



19
20
21
# File 'lib/context-io/authentication.rb', line 19

def authenticated?
  authentication[:consumer_key] and authentication[:consumer_secret]
end

#authenticationHash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns The authentication details for OAuth.

Returns:

  • The authentication details for OAuth.

API:

  • private



9
10
11
12
13
14
15
16
# File 'lib/context-io/authentication.rb', line 9

def authentication
  {
    :consumer_key => consumer_key,
    :consumer_secret => consumer_secret,
    :token => nil,
    :token_secret => nil,
  }
end