Class: Dynflow::PersistenceAdapters::Abstract
- Inherits:
-
Object
- Object
- Dynflow::PersistenceAdapters::Abstract
- Defined in:
- lib/dynflow/persistence_adapters/abstract.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#logger ⇒ Object
The logger is set by the world when used inside it.
Instance Method Summary collapse
- #filtering_by ⇒ Object
- #find_execution_plans(options = {}) ⇒ Object
- #load_action(execution_plan_id, action_id) ⇒ Object
- #load_execution_plan(execution_plan_id) ⇒ Object
- #load_step(execution_plan_id, step_id) ⇒ Object
- #log(level, message) ⇒ Object
- #ordering_by ⇒ Object
- #pagination? ⇒ Boolean
- #register_world(world) ⇒ Object
- #save_action(execution_plan_id, action_id, value) ⇒ Object
- #save_execution_plan(execution_plan_id, value) ⇒ Object
- #save_step(execution_plan_id, step_id, value) ⇒ Object
-
#to_hash ⇒ Object
for debug purposes.
Instance Attribute Details
#logger ⇒ Object
The logger is set by the world when used inside it
6 7 8 |
# File 'lib/dynflow/persistence_adapters/abstract.rb', line 6 def logger @logger end |
Instance Method Details
#filtering_by ⇒ Object
21 22 23 |
# File 'lib/dynflow/persistence_adapters/abstract.rb', line 21 def filtering_by [] end |
#find_execution_plans(options = {}) ⇒ Object
35 36 37 |
# File 'lib/dynflow/persistence_adapters/abstract.rb', line 35 def find_execution_plans( = {}) raise NotImplementedError end |
#load_action(execution_plan_id, action_id) ⇒ Object
55 56 57 |
# File 'lib/dynflow/persistence_adapters/abstract.rb', line 55 def load_action(execution_plan_id, action_id) raise NotImplementedError end |
#load_execution_plan(execution_plan_id) ⇒ Object
39 40 41 |
# File 'lib/dynflow/persistence_adapters/abstract.rb', line 39 def load_execution_plan(execution_plan_id) raise NotImplementedError end |
#load_step(execution_plan_id, step_id) ⇒ Object
47 48 49 |
# File 'lib/dynflow/persistence_adapters/abstract.rb', line 47 def load_step(execution_plan_id, step_id) raise NotImplementedError end |
#log(level, message) ⇒ Object
13 14 15 |
# File 'lib/dynflow/persistence_adapters/abstract.rb', line 13 def log(level, ) (@worlds.first && @worlds.first.logger).send(level, ) end |
#ordering_by ⇒ Object
25 26 27 |
# File 'lib/dynflow/persistence_adapters/abstract.rb', line 25 def ordering_by [] end |
#pagination? ⇒ Boolean
17 18 19 |
# File 'lib/dynflow/persistence_adapters/abstract.rb', line 17 def pagination? false end |
#register_world(world) ⇒ Object
8 9 10 11 |
# File 'lib/dynflow/persistence_adapters/abstract.rb', line 8 def register_world(world) @worlds ||= Set.new @worlds << world end |
#save_action(execution_plan_id, action_id, value) ⇒ Object
59 60 61 |
# File 'lib/dynflow/persistence_adapters/abstract.rb', line 59 def save_action(execution_plan_id, action_id, value) raise NotImplementedError end |
#save_execution_plan(execution_plan_id, value) ⇒ Object
43 44 45 |
# File 'lib/dynflow/persistence_adapters/abstract.rb', line 43 def save_execution_plan(execution_plan_id, value) raise NotImplementedError end |
#save_step(execution_plan_id, step_id, value) ⇒ Object
51 52 53 |
# File 'lib/dynflow/persistence_adapters/abstract.rb', line 51 def save_step(execution_plan_id, step_id, value) raise NotImplementedError end |
#to_hash ⇒ Object
for debug purposes
64 65 66 |
# File 'lib/dynflow/persistence_adapters/abstract.rb', line 64 def to_hash raise NotImplementedError end |