Class: Console::Auth::Basic::BasicUser

Inherits:
RestApi::Authorization show all
Extended by:
ActiveModel::Naming
Includes:
ActiveModel::Conversion
Defined in:
app/controllers/console/auth/basic.rb

Instance Attribute Summary

Attributes inherited from RestApi::Authorization

#login, #password, #ticket

Instance Method Summary collapse

Methods inherited from RestApi::Authorization

#cache_key

Constructor Details

#initialize(opts = {}) ⇒ BasicUser

Returns a new instance of BasicUser.



14
15
16
# File 'app/controllers/console/auth/basic.rb', line 14

def initialize(opts={})
  opts.each_pair { |key,value| instance_variable_set("@#{key}", value) }
end

Instance Method Details

#email_addressObject



17
18
19
# File 'app/controllers/console/auth/basic.rb', line 17

def email_address
  nil
end

#persisted?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'app/controllers/console/auth/basic.rb', line 21

def persisted?
  false
end