Class: Rack::Auth::AbstractRequest
- Inherits:
-
Object
- Object
- Rack::Auth::AbstractRequest
show all
- Defined in:
- lib/gems/rack-0.9.1/lib/rack/auth/abstract/request.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of AbstractRequest.
5
6
7
|
# File 'lib/gems/rack-0.9.1/lib/rack/auth/abstract/request.rb', line 5
def initialize(env)
@env = env
end
|
Instance Method Details
21
22
23
|
# File 'lib/gems/rack-0.9.1/lib/rack/auth/abstract/request.rb', line 21
def params
@params ||= parts.last
end
|
13
14
15
|
# File 'lib/gems/rack-0.9.1/lib/rack/auth/abstract/request.rb', line 13
def parts
@parts ||= @env[authorization_key].split(' ', 2)
end
|
#provided? ⇒ Boolean
9
10
11
|
# File 'lib/gems/rack-0.9.1/lib/rack/auth/abstract/request.rb', line 9
def provided?
!authorization_key.nil?
end
|
17
18
19
|
# File 'lib/gems/rack-0.9.1/lib/rack/auth/abstract/request.rb', line 17
def scheme
@scheme ||= parts.first.downcase.to_sym
end
|