Class: Postpeek::Storage::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/postpeek/storage/base.rb

Direct Known Subclasses

FileSystem

Instance Method Summary collapse

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

#clearObject

Raises:

  • (NotImplementedError)


26
27
28
# File 'lib/postpeek/storage/base.rb', line 26

def clear
  raise NotImplementedError, "#{self.class}#clear not implemented"
end

#countObject

Raises:

  • (NotImplementedError)


30
31
32
# File 'lib/postpeek/storage/base.rb', line 30

def count
  raise NotImplementedError, "#{self.class}#count not implemented"
end

#delete(_id) ⇒ Object

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/postpeek/storage/base.rb', line 18

def fetch(_id)
  raise NotImplementedError, "#{self.class}#fetch not implemented"
end

#listObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/postpeek/storage/base.rb', line 14

def list
  raise NotImplementedError, "#{self.class}#list not implemented"
end

#save(_message) ⇒ Object

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/postpeek/storage/base.rb', line 10

def save(_message)
  raise NotImplementedError, "#{self.class}#save not implemented"
end