Class: IAuthU::Authenticator::Chained::Builder
- Inherits:
-
Object
- Object
- IAuthU::Authenticator::Chained::Builder
- Defined in:
- lib/iauthu/authenticator/chained.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#auth ⇒ Object
readonly
Returns the value of attribute auth.
Instance Method Summary collapse
-
#initialize ⇒ Builder
constructor
A new instance of Builder.
- #use(authenticator = nil, opts = {}, &block) ⇒ Object
Constructor Details
Instance Attribute Details
#auth ⇒ Object (readonly)
Returns the value of attribute auth.
97 98 99 |
# File 'lib/iauthu/authenticator/chained.rb', line 97 def auth @auth end |
Instance Method Details
#use(authenticator = nil, opts = {}, &block) ⇒ Object
99 100 101 102 103 104 |
# File 'lib/iauthu/authenticator/chained.rb', line 99 def use(authenticator=nil, opts={}, &block) if block && !authenticator authenticator = block end @auth.add authenticator, opts end |