Class: Rubolite::User

Inherits:
Object
  • Object
show all
Defined in:
lib/rubolite/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, permissions = nil) ⇒ User

Returns a new instance of User.



5
6
7
8
# File 'lib/rubolite/user.rb', line 5

def initialize(name=nil, permissions=nil)
  self.name = name
  self.permissions = permissions
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/rubolite/user.rb', line 3

def name
  @name
end

#permissionsObject

Returns the value of attribute permissions.



3
4
5
# File 'lib/rubolite/user.rb', line 3

def permissions
  @permissions
end