Class: Booth::Requests::Storages::Registration
- Inherits:
-
Object
- Object
- Booth::Requests::Storages::Registration
- Includes:
- Logging
- Defined in:
- lib/booth/requests/storages/registration.rb
Instance Method Summary collapse
-
#initialize(session:) ⇒ Registration
constructor
A new instance of Registration.
- #username ⇒ Object
- #username=(new_username) ⇒ Object
Constructor Details
#initialize(session:) ⇒ Registration
Returns a new instance of Registration.
9 10 11 |
# File 'lib/booth/requests/storages/registration.rb', line 9 def initialize(session:) @session = session end |
Instance Method Details
#username ⇒ Object
13 14 15 |
# File 'lib/booth/requests/storages/registration.rb', line 13 def username session[:username] end |
#username=(new_username) ⇒ Object
17 18 19 |
# File 'lib/booth/requests/storages/registration.rb', line 17 def username=(new_username) session[:username] = new_username end |