Class: Gameplan::User
- Inherits:
-
Object
- Object
- Gameplan::User
- Defined in:
- lib/gameplan/user.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, *capabilities) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(type, *capabilities) ⇒ User
Returns a new instance of User.
5 6 7 |
# File 'lib/gameplan/user.rb', line 5 def initialize(type, *capabilities) @type, @capabilities = type, capabilities end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/gameplan/user.rb', line 3 def type @type end |