Class: Postpeek::Storage::Base
- Inherits:
-
Object
- Object
- Postpeek::Storage::Base
- Defined in:
- lib/postpeek/storage/base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #clear ⇒ Object
- #count ⇒ Object
- #delete(_id) ⇒ Object
- #fetch(_id) ⇒ Object
-
#initialize(config) ⇒ Base
constructor
A new instance of Base.
- #list ⇒ Object
- #save(_message) ⇒ Object
Constructor Details
#initialize(config) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/postpeek/storage/base.rb', line 6 def initialize(config) @config = config end |
Instance Method Details
#clear ⇒ Object
26 27 28 |
# File 'lib/postpeek/storage/base.rb', line 26 def clear raise NotImplementedError, "#{self.class}#clear not implemented" end |
#count ⇒ Object
30 31 32 |
# File 'lib/postpeek/storage/base.rb', line 30 def count raise NotImplementedError, "#{self.class}#count not implemented" end |
#delete(_id) ⇒ Object
22 23 24 |
# File 'lib/postpeek/storage/base.rb', line 22 def delete(_id) raise NotImplementedError, "#{self.class}#delete not implemented" end |
#fetch(_id) ⇒ Object
18 19 20 |
# File 'lib/postpeek/storage/base.rb', line 18 def fetch(_id) raise NotImplementedError, "#{self.class}#fetch not implemented" end |
#list ⇒ Object
14 15 16 |
# File 'lib/postpeek/storage/base.rb', line 14 def list raise NotImplementedError, "#{self.class}#list not implemented" end |
#save(_message) ⇒ Object
10 11 12 |
# File 'lib/postpeek/storage/base.rb', line 10 def save() raise NotImplementedError, "#{self.class}#save not implemented" end |