Class: Symphonia::User::Anonymous

Inherits:
Object
  • Object
show all
Defined in:
app/models/symphonia/user.rb

Instance Method Summary collapse

Instance Method Details

#adminObject Also known as: admin?



119
120
121
# File 'app/models/symphonia/user.rb', line 119

def admin
  false
end

#allowed_to?(_action) ⇒ Boolean

Returns:

  • (Boolean)


103
104
105
# File 'app/models/symphonia/user.rb', line 103

def allowed_to?(_action)
  false
end

#authorize?(_controller, _action) ⇒ Boolean

Returns:

  • (Boolean)


107
108
109
# File 'app/models/symphonia/user.rb', line 107

def authorize?(_controller, _action)
  false
end

#createObject



115
116
117
# File 'app/models/symphonia/user.rb', line 115

def create
  false
end

#emailObject



99
100
101
# File 'app/models/symphonia/user.rb', line 99

def email
  'anonym@nothing'
end

#idObject



87
88
89
# File 'app/models/symphonia/user.rb', line 87

def id
  0
end

#languageObject



133
134
135
# File 'app/models/symphonia/user.rb', line 133

def language
  nil
end

#logged_in?Boolean

Returns:

  • (Boolean)


125
126
127
# File 'app/models/symphonia/user.rb', line 125

def logged_in?
  false
end

#loginObject



95
96
97
# File 'app/models/symphonia/user.rb', line 95

def 
  'anonymous'
end

#nameObject



91
92
93
# File 'app/models/symphonia/user.rb', line 91

def name
  'Anonymous'
end

#persistence_tokenObject



129
130
131
# File 'app/models/symphonia/user.rb', line 129

def persistence_token
  nil
end

#saveObject



111
112
113
# File 'app/models/symphonia/user.rb', line 111

def save
  false
end