Class: Cassette::Authentication::User
- Inherits:
-
Object
- Object
- Cassette::Authentication::User
- Defined in:
- lib/cassette/authentication/user.rb
Instance Attribute Summary collapse
-
#authorities ⇒ Object
Returns the value of attribute authorities.
-
#email ⇒ Object
Returns the value of attribute email.
-
#login ⇒ Object
Returns the value of attribute login.
-
#name ⇒ Object
Returns the value of attribute name.
-
#ticket ⇒ Object
Returns the value of attribute ticket.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(attrs = {}) ⇒ User
Returns a new instance of User.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/cassette/authentication/user.rb', line 13 def initialize(attrs = {}) config = attrs[:config] @login = attrs[:login] @name = attrs[:name] @type = attrs[:type] @email = attrs[:email] @ticket = attrs[:ticket] @authorities = Cassette::Authentication::Authorities .parse(attrs.fetch(:authorities, '[]'), config && config.) end |
Instance Attribute Details
#authorities ⇒ Object
Returns the value of attribute authorities.
10 11 12 |
# File 'lib/cassette/authentication/user.rb', line 10 def @authorities end |
#email ⇒ Object
Returns the value of attribute email.
10 11 12 |
# File 'lib/cassette/authentication/user.rb', line 10 def email @email end |
#login ⇒ Object
Returns the value of attribute login.
10 11 12 |
# File 'lib/cassette/authentication/user.rb', line 10 def login @login end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/cassette/authentication/user.rb', line 10 def name @name end |
#ticket ⇒ Object
Returns the value of attribute ticket.
10 11 12 |
# File 'lib/cassette/authentication/user.rb', line 10 def ticket @ticket end |
#type ⇒ Object
Returns the value of attribute type.
10 11 12 |
# File 'lib/cassette/authentication/user.rb', line 10 def type @type end |