Module: Identity::Gateway

Defined in:
lib/identity/gateway.rb,
lib/identity/gateway/version.rb,
lib/identity/gateway/provider.rb,
lib/identity/gateway/configuration.rb
more...

Defined Under Namespace

Classes: Configuration, Provider, Unauthorized

Constant Summary collapse

VERSION =
'1.1.2'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Access module configuration.

Returns

  • Identity::Gateway::Configuration - instance


14
15
16
# File 'lib/identity/gateway.rb', line 14

def self.configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Configure block.

Returns

  • void

Yields:

[View source]

30
31
32
# File 'lib/identity/gateway.rb', line 30

def self.configure
  yield(configuration)
end

.resetObject

Reset configuration to defaults.

Returns

  • Identity::Gateway::Configuration - instance

[View source]

22
23
24
# File 'lib/identity/gateway.rb', line 22

def self.reset
  @configuration = Configuration.new
end