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?



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

def admin
  false
end

#allowed_to?(_action) ⇒ Boolean

Returns:

  • (Boolean)


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

def allowed_to?(_action)
  false
end

#authorize?(_controller, _action) ⇒ Boolean

Returns:

  • (Boolean)


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

def authorize?(_controller, _action)
  false
end

#createObject



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

def create
  false
end

#emailObject



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

def email
  'anonym@nothing'
end

#idObject



84
85
86
# File 'app/models/symphonia/user.rb', line 84

def id
  0
end

#languageObject



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

def language
  nil
end

#logged_in?Boolean

Returns:

  • (Boolean)


122
123
124
# File 'app/models/symphonia/user.rb', line 122

def logged_in?
  false
end

#loginObject



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

def 
  'anonymous'
end

#nameObject



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

def name
  'Anonymous'
end

#persistence_tokenObject



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

def persistence_token
  nil
end

#saveObject



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

def save
  false
end