Class: Sinatra::LazyAuth::LazyCredentials
- Inherits:
-
Object
- Object
- Sinatra::LazyAuth::LazyCredentials
- Defined in:
- lib/sinatra/lazy_auth.rb
Instance Method Summary collapse
-
#initialize(app) ⇒ LazyCredentials
constructor
A new instance of LazyCredentials.
- #password ⇒ Object
- #provided? ⇒ Boolean
- #user ⇒ Object
Constructor Details
#initialize(app) ⇒ LazyCredentials
Returns a new instance of LazyCredentials.
8 9 10 11 |
# File 'lib/sinatra/lazy_auth.rb', line 8 def initialize(app) @app = app @provided = false end |
Instance Method Details
#password ⇒ Object
18 19 20 21 |
# File 'lib/sinatra/lazy_auth.rb', line 18 def password credentials! @password end |
#provided? ⇒ Boolean
23 24 25 |
# File 'lib/sinatra/lazy_auth.rb', line 23 def provided? @provided end |
#user ⇒ Object
13 14 15 16 |
# File 'lib/sinatra/lazy_auth.rb', line 13 def user credentials! @user end |