Class: N::AnonymousUser
Overview
Anonymous User
Implemented as singleton.
Instance Attribute Summary collapse
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#name ⇒ Object
Returns the value of attribute name.
-
#shader ⇒ Object
Returns the value of attribute shader.
Instance Method Summary collapse
- #anonymous? ⇒ Boolean
-
#initialize ⇒ AnonymousUser
constructor
A new instance of AnonymousUser.
- #login ⇒ Object
- #logout ⇒ Object
Constructor Details
#initialize ⇒ AnonymousUser
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
#locale ⇒ Object
Returns the value of attribute locale.
26 27 28 |
# File 'lib/n/app/user.rb', line 26 def locale @locale end |
#name ⇒ Object
Returns the value of attribute name.
25 26 27 |
# File 'lib/n/app/user.rb', line 25 def name @name end |
#shader ⇒ Object
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
36 37 38 |
# File 'lib/n/app/user.rb', line 36 def anonymous? true end |
#login ⇒ Object
40 41 |
# File 'lib/n/app/user.rb', line 40 def login end |
#logout ⇒ Object
43 44 |
# File 'lib/n/app/user.rb', line 43 def logout end |