Class: Ribbon::Intercom::Service::Channel::Stores::Store
- Inherits:
-
Object
- Object
- Ribbon::Intercom::Service::Channel::Stores::Store
- Defined in:
- lib/ribbon/intercom/service/channel/stores/store.rb
Direct Known Subclasses
Instance Method Summary collapse
- #delete(channel) ⇒ Object
- #healthy? ⇒ Boolean
- #lookup_channel(token) ⇒ Object
- #open_channel(params = {}) ⇒ Object
- #persist(channel) ⇒ Object
- #token_exists?(token) ⇒ Boolean
- #with_lock(channel, &block) ⇒ Object
Instance Method Details
#delete(channel) ⇒ Object
28 29 30 |
# File 'lib/ribbon/intercom/service/channel/stores/store.rb', line 28 def delete(channel) raise NotImplementedError end |
#healthy? ⇒ 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
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
24 25 26 |
# File 'lib/ribbon/intercom/service/channel/stores/store.rb', line 24 def persist(channel) raise NotImplementedError end |
#token_exists?(token) ⇒ Boolean
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
32 33 34 |
# File 'lib/ribbon/intercom/service/channel/stores/store.rb', line 32 def with_lock(channel, &block) raise NotImplementedError end |