Class: AmaLayout::Notifications::AbstractStore

Inherits:
Object
  • Object
show all
Defined in:
lib/ama_layout/notifications/abstract_store.rb

Direct Known Subclasses

RedisStore

Instance Method Summary collapse

Instance Method Details

#delete(key, opts = {}) ⇒ Object

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/ama_layout/notifications/abstract_store.rb', line 12

def delete(key, opts = {})
  raise NotImplementedError, 'you must define a #delete method in a subclass'
end

#get(key, opts = {}) ⇒ Object

Raises:

  • (NotImplementedError)


4
5
6
# File 'lib/ama_layout/notifications/abstract_store.rb', line 4

def get(key, opts = {})
  raise NotImplementedError, 'you must define a #get method in a subclass'
end

#set(key, value, opts = {}) ⇒ Object

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/ama_layout/notifications/abstract_store.rb', line 8

def set(key, value, opts = {})
  raise NotImplementedError, 'you must define a #set method in a subclass'
end