Class: Booth::Requests::Storage
- Inherits:
-
Object
- Object
- Booth::Requests::Storage
- Includes:
- Logging
- Defined in:
- lib/booth/requests/storage.rb
Instance Method Summary collapse
-
#initialize(scope:, request:) ⇒ Storage
constructor
A new instance of Storage.
- #login ⇒ Object
- #registration ⇒ Object
- #webauth ⇒ Object
Constructor Details
#initialize(scope:, request:) ⇒ Storage
Returns a new instance of Storage.
8 9 10 11 |
# File 'lib/booth/requests/storage.rb', line 8 def initialize(scope:, request:) @scope = scope @request = request end |
Instance Method Details
#login ⇒ Object
13 14 15 16 17 |
# File 'lib/booth/requests/storage.rb', line 13 def login @login ||= ::Booth::Requests::Storages::Login.new( session: request.session(namespace: :login), ) end |
#registration ⇒ Object
25 26 27 28 29 |
# File 'lib/booth/requests/storage.rb', line 25 def registration @registration ||= ::Booth::Requests::Storages::Registration.new( session: request.session(namespace: :registration), ) end |
#webauth ⇒ Object
19 20 21 22 23 |
# File 'lib/booth/requests/storage.rb', line 19 def webauth @webauth ||= ::Booth::Requests::Storages::Webauth.new( session: request.session(namespace: :webauth), ) end |