Class: Ribbon::Intercom::Service::Channel::Stores::Store

Inherits:
Object
  • Object
show all
Defined in:
lib/ribbon/intercom/service/channel/stores/store.rb

Direct Known Subclasses

MockStore, RedisStore

Instance Method Summary collapse

Instance Method Details

#delete(channel) ⇒ Object

Raises:

  • (NotImplementedError)


28
29
30
# File 'lib/ribbon/intercom/service/channel/stores/store.rb', line 28

def delete(channel)
  raise NotImplementedError
end

#healthy?Boolean

Returns:

  • (Boolean)


9
10
11
12
13
14
# File 'lib/ribbon/intercom/service/channel/stores/store.rb', line 9

def healthy?
  token_exists?('healthcheck')
  true
rescue
  false
end

#lookup_channel(token) ⇒ Object

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/ribbon/intercom/service/channel/stores/store.rb', line 20

def lookup_channel(token)
  raise NotImplementedError
end

#open_channel(params = {}) ⇒ Object



5
6
7
# File 'lib/ribbon/intercom/service/channel/stores/store.rb', line 5

def open_channel(params={})
  Channel.new(self, params)
end

#persist(channel) ⇒ Object

Raises:

  • (NotImplementedError)


24
25
26
# File 'lib/ribbon/intercom/service/channel/stores/store.rb', line 24

def persist(channel)
  raise NotImplementedError
end

#token_exists?(token) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/ribbon/intercom/service/channel/stores/store.rb', line 16

def token_exists?(token)
  raise NotImplementedError
end

#with_lock(channel, &block) ⇒ Object

Raises:

  • (NotImplementedError)


32
33
34
# File 'lib/ribbon/intercom/service/channel/stores/store.rb', line 32

def with_lock(channel, &block)
  raise NotImplementedError
end