Class: Rack::Authentication::Adapters::Base
- Inherits:
-
Object
- Object
- Rack::Authentication::Adapters::Base
- Defined in:
- lib/rack/authentication/adapters/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Base
constructor
A new instance of Base.
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
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
3 4 5 |
# File 'lib/rack/authentication/adapters/base.rb', line 3 def credentials @credentials end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
3 4 5 |
# File 'lib/rack/authentication/adapters/base.rb', line 3 def env @env end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/rack/authentication/adapters/base.rb', line 3 def type @type end |