Module: DuodealerApp::SessionStorage

Extended by:
ActiveSupport::Concern
Included in:
Shop, User
Defined in:
lib/duodealer_app/session/session_storage.rb,
lib/duodealer_app/session/storage_strategies/user_storage_strategy.rb,
lib/duodealer_app/session/storage_strategies/account_storage_strategy.rb

Defined Under Namespace

Modules: AccountStorageStrategy, UserStorageStrategy

Instance Method Summary collapse

Instance Method Details

#with_duodealer_session(&block) ⇒ Object



22
23
24
25
26
27
28
29
# File 'lib/duodealer_app/session/session_storage.rb', line 22

def with_duodealer_session(&block)
  DuodealerAPI::Session.temp(
    domain: duodealer_domain,
    token: duodealer_token,
    api_version: api_version,
    &block
  )
end