Module: OAuthSignature

Defined in:
lib/oauth_signature.rb,
lib/oauth_signature/base64.rb,
lib/oauth_signature/client.rb,
lib/oauth_signature/config.rb,
lib/oauth_signature/signer.rb,
lib/oauth_signature/version.rb,
lib/oauth_signature/certificate.rb,
lib/oauth_signature/orm/active_record.rb,
lib/oauth_signature/oauth_signature_error.rb,
lib/oauth_signature/orm/active_record/certificate_signer.rb

Overview

Author:

Since:

  • 0.0.1

Version:

  • 0.2

Defined Under Namespace

Modules: OAuthSignatureError Classes: Certificate, Client, Config, Signer

Constant Summary collapse

VERSION =

Returns the oauth_signature gem version.

Returns:

  • (String)

    the oauth_signature gem version

Since:

  • 0.0.1

'0.2.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configConfig

Returns the OAuthSignature gem configuration.

Returns:

  • (Config)

    the OAuthSignature gem configuration

Since:

  • 0.0.1


38
39
40
# File 'lib/oauth_signature.rb', line 38

def self.config
  @config ||= Config.new
end

Class Method Details

.configure {|config| ... } ⇒ Object

Configure the gem

Yields:

  • (config)

    gives the config to the block

Yield Parameters:

  • config (Config)

    the gem Config instance

Raises:

  • (NameError)

    if an invalid orm is provided to the config block.

Since:

  • 0.0.1


47
48
49
50
51
52
# File 'lib/oauth_signature.rb', line 47

def self.configure
  yield(config)
  setup_orm_adapter
  setup_orm_models
  config
end