Class: Booth::Requests::Storage

Inherits:
Object
  • Object
show all
Includes:
Logging
Defined in:
lib/booth/requests/storage.rb

Instance Method Summary collapse

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

#loginObject



13
14
15
16
17
# File 'lib/booth/requests/storage.rb', line 13

def 
  @login ||= ::Booth::Requests::Storages::.new(
    session: request.session(namespace: :login),
  )
end

#registrationObject



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

#webauthObject



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