Class: N::AnonymousUser

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/n/app/user.rb

Overview

Anonymous User

Implemented as singleton.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAnonymousUser

Returns a new instance of AnonymousUser.



29
30
31
32
33
34
# File 'lib/n/app/user.rb', line 29

def initialize
	super
	@name = "anonymous"
	@locale = "en"
	@shader = $default_shader
end

Instance Attribute Details

#localeObject

Returns the value of attribute locale.



26
27
28
# File 'lib/n/app/user.rb', line 26

def locale
  @locale
end

#nameObject

Returns the value of attribute name.



25
26
27
# File 'lib/n/app/user.rb', line 25

def name
  @name
end

#shaderObject

Returns the value of attribute shader.



27
28
29
# File 'lib/n/app/user.rb', line 27

def shader
  @shader
end

Instance Method Details

#anonymous?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/n/app/user.rb', line 36

def anonymous?
	true
end

#loginObject



40
41
# File 'lib/n/app/user.rb', line 40

def 
end

#logoutObject



43
44
# File 'lib/n/app/user.rb', line 43

def logout
end