Class: Spinoza::Operation

Inherits:
Object
  • Object
show all
Defined in:
lib/spinoza/system/operation.rb

Overview

Operations are stateless and do not reference any particular store. Hence they can be serialized and passed around the system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tableObject (readonly)

Name of table.



8
9
10
# File 'lib/spinoza/system/operation.rb', line 8

def table
  @table
end

Instance Method Details

#check(lm) ⇒ Object

check that this operation is allowed to execute lm is LockManager



19
20
21
# File 'lib/spinoza/system/operation.rb', line 19

def check lm
  raise
end

#execute(ds) ⇒ Object

ds is Sequel dataset representing the table



13
14
15
# File 'lib/spinoza/system/operation.rb', line 13

def execute ds
  raise
end