Class: Marsdawn::Storage::Base
- Inherits:
-
Object
- Object
- Marsdawn::Storage::Base
show all
- Defined in:
- lib/marsdawn/storage/base.rb
Instance Method Summary
collapse
Constructor Details
#initialize(config, opts) ⇒ Base
Returns a new instance of Base.
5
6
7
8
|
# File 'lib/marsdawn/storage/base.rb', line 5
def initialize config, opts
@config = config
@opts = opts
end
|
Instance Method Details
#clean_up ⇒ Object
25
26
|
# File 'lib/marsdawn/storage/base.rb', line 25
def clean_up
end
|
#finalize ⇒ Object
22
23
|
# File 'lib/marsdawn/storage/base.rb', line 22
def finalize
end
|
#get(uri) ⇒ Object
40
41
42
|
# File 'lib/marsdawn/storage/base.rb', line 40
def get uri
raise NotImplementedError.new("#{self.class.name}#get() is not implemented.")
end
|
#get_document_info ⇒ Object
36
37
38
|
# File 'lib/marsdawn/storage/base.rb', line 36
def get_document_info
raise NotImplementedError.new("#{self.class.name}#get_document_info() is not implemented.")
end
|
#key ⇒ Object
10
11
12
|
# File 'lib/marsdawn/storage/base.rb', line 10
def key
@opts[:key]
end
|
#lang ⇒ Object
14
15
16
|
# File 'lib/marsdawn/storage/base.rb', line 14
def lang
@opts[:lang]
end
|
#set(uri, content, exvars, sysinfo) ⇒ Object
32
33
34
|
# File 'lib/marsdawn/storage/base.rb', line 32
def set uri, content, exvars, sysinfo
raise NotImplementedError.new("#{self.class.name}#set() is not implemented.")
end
|
#set_document_info(doc_info) ⇒ Object
28
29
30
|
# File 'lib/marsdawn/storage/base.rb', line 28
def set_document_info doc_info
raise NotImplementedError.new("#{self.class.name}#set_document_info() is not implemented.")
end
|
#version ⇒ Object
18
19
20
|
# File 'lib/marsdawn/storage/base.rb', line 18
def version
@opts[:version]
end
|