Class: ShopifyApp::InMemoryShopSessionStore

Inherits:
InMemorySessionStore show all
Defined in:
lib/ruby_shopify_app/session/in_memory_shop_session_store.rb

Class Method Summary collapse

Methods inherited from InMemorySessionStore

clear, repo, retrieve

Class Method Details

.retrieve_by_shopify_domain(shopify_domain) ⇒ Object



11
12
13
# File 'lib/ruby_shopify_app/session/in_memory_shop_session_store.rb', line 11

def retrieve_by_shopify_domain(shopify_domain)
  repo[shopify_domain]
end

.store(session, *args) ⇒ Object



5
6
7
8
9
# File 'lib/ruby_shopify_app/session/in_memory_shop_session_store.rb', line 5

def store(session, *args)
  id = super
  repo[session.domain] = session
  id
end