Class: Rack::Authentication::Adapters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/authentication/adapters/base.rb

Direct Known Subclasses

Basic

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Base

Returns a new instance of Base.



5
6
7
8
9
# File 'lib/rack/authentication/adapters/base.rb', line 5

def initialize(args={})
  @type = args[:type]
  @env  = args[:env]
  @credentials = args[:credentials]
end

Instance Attribute Details

#credentialsObject (readonly)

Returns the value of attribute credentials.



3
4
5
# File 'lib/rack/authentication/adapters/base.rb', line 3

def credentials
  @credentials
end

#envObject (readonly)

Returns the value of attribute env.



3
4
5
# File 'lib/rack/authentication/adapters/base.rb', line 3

def env
  @env
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/rack/authentication/adapters/base.rb', line 3

def type
  @type
end