Class: Console::Auth::RemoteUser::RemoteUser
- Inherits:
-
RestApi::Authorization
- Object
- RestApi::Authorization
- Console::Auth::RemoteUser::RemoteUser
- Extended by:
- ActiveModel::Naming
- Includes:
- ActiveModel::Conversion
- Defined in:
- app/controllers/console/auth/remote_user.rb
Instance Attribute Summary
Attributes inherited from RestApi::Authorization
Instance Method Summary collapse
- #email_address ⇒ Object
-
#initialize(username, headers) ⇒ RemoteUser
constructor
A new instance of RemoteUser.
- #login ⇒ Object
- #persisted? ⇒ Boolean
- #to_headers ⇒ Object
Methods inherited from RestApi::Authorization
Constructor Details
#initialize(username, headers) ⇒ RemoteUser
Returns a new instance of RemoteUser.
14 15 16 17 |
# File 'app/controllers/console/auth/remote_user.rb', line 14 def initialize(username, headers) @username = username @headers = headers.freeze end |
Instance Method Details
#email_address ⇒ Object
21 22 23 |
# File 'app/controllers/console/auth/remote_user.rb', line 21 def email_address nil end |
#login ⇒ Object
18 19 20 |
# File 'app/controllers/console/auth/remote_user.rb', line 18 def login @username end |
#persisted? ⇒ Boolean
27 28 29 |
# File 'app/controllers/console/auth/remote_user.rb', line 27 def persisted? false end |
#to_headers ⇒ Object
24 25 26 |
# File 'app/controllers/console/auth/remote_user.rb', line 24 def to_headers @headers end |