Class: Passpartu::User
- Inherits:
-
Object
- Object
- Passpartu::User
- Defined in:
- lib/passpartu/user.rb
Instance Attribute Summary collapse
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(role) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(role) ⇒ User
Returns a new instance of User.
9 10 11 |
# File 'lib/passpartu/user.rb', line 9 def initialize(role) @role = role end |
Instance Attribute Details
#role ⇒ Object (readonly)
Returns the value of attribute role.
7 8 9 |
# File 'lib/passpartu/user.rb', line 7 def role @role end |