Class: Rack::Webauth::User

Inherits:
Object
  • Object
show all
Defined in:
lib/rack-webauth.rb

Overview

A default User object, to easily access attributes. Used by WardenStrategy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(webauth_info) ⇒ User

Returns a new instance of User


83
84
85
86
# File 'lib/rack-webauth.rb', line 83

def initialize(webauth_info)
  @webauth_info = webauth_info
  @login = @webauth_info.
end

Instance Attribute Details

#loginObject (readonly)

Returns the value of attribute login


81
82
83
# File 'lib/rack-webauth.rb', line 81

def 
  @login
end

Instance Method Details

#[](attribute) ⇒ Object


88
89
90
# File 'lib/rack-webauth.rb', line 88

def [](attribute)
  @webauth_info.attributes[attribute.to_s.upcase]
end