Class: Trahald::BackendBase

Inherits:
Object
  • Object
show all
Defined in:
lib/trahald/backend-base.rb

Direct Known Subclasses

Git, RedisClient

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBackendBase

Returns a new instance of BackendBase.



6
7
# File 'lib/trahald/backend-base.rb', line 6

def initialize
end

Class Method Details

.init_repo_if_needed(dir) ⇒ Object



37
38
39
# File 'lib/trahald/backend-base.rb', line 37

def self.init_repo_if_needed(dir)
  raise "Called abstract method: self.init_repo_if_needed"
end

Instance Method Details

#add!(name, body) ⇒ Object



9
10
11
# File 'lib/trahald/backend-base.rb', line 9

def add!(name, body)
  raise "Called abstract method: add!"
end

#article(name) ⇒ Object



13
14
15
# File 'lib/trahald/backend-base.rb', line 13

def article(name)
  raise "Called abstract method: article"
end

#body(name) ⇒ Object



17
18
19
# File 'lib/trahald/backend-base.rb', line 17

def body(name)
  raise "Called abstract method: body"
end

#commit!(message) ⇒ Object



21
22
23
# File 'lib/trahald/backend-base.rb', line 21

def commit!(message)
  raise "Called abstract method: commit!"
end

#dataObject



33
34
35
# File 'lib/trahald/backend-base.rb', line 33

def data
  raise "Called abstract method: data"
end

#last_modifiedObject



25
26
27
# File 'lib/trahald/backend-base.rb', line 25

def last_modified
  raise "Called abstract method: last_modified"
end

#listObject



29
30
31
# File 'lib/trahald/backend-base.rb', line 29

def list
  raise "Called abstract method: list"
end