Class: Safettp::BasicAuthenticator
- Inherits:
-
Object
- Object
- Safettp::BasicAuthenticator
- Defined in:
- lib/safettp/basic_authenticator.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ BasicAuthenticator
constructor
A new instance of BasicAuthenticator.
- #set(request) ⇒ Object
Constructor Details
#initialize(options) ⇒ BasicAuthenticator
Returns a new instance of BasicAuthenticator.
4 5 6 |
# File 'lib/safettp/basic_authenticator.rb', line 4 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
2 3 4 |
# File 'lib/safettp/basic_authenticator.rb', line 2 def @options end |
Instance Method Details
#set(request) ⇒ Object
8 9 10 |
# File 'lib/safettp/basic_authenticator.rb', line 8 def set(request) request.basic_auth([:username], [:password]) end |