Class: Kiqchestra::Config
- Inherits:
-
Object
- Object
- Kiqchestra::Config
- Defined in:
- lib/kiqchestra/config.rb
Overview
The Config class provides a configuration object for Kiqchestra, allowing users to customize various aspects of the library’s behavior.
By default, it initializes with a DefaultWorkflowStore instance for managing workflow storage (dependencies, progress, etc.). Users can override this with a custom store by setting the ‘workflow_store` attribute.
Attributes:
-
‘workflow_store`: The object responsible for storing workflow-related data. Defaults to an instance of `DefaultWorkflowStore`.
Example Usage:
Kiqchestra.configure do |config|
config.store = MyCustomWorkflowStore.new
end
Instance Attribute Summary collapse
-
#store ⇒ Object
Returns the value of attribute store.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
24 25 26 |
# File 'lib/kiqchestra/config.rb', line 24 def initialize @store = DefaultWorkflowStore.new end |
Instance Attribute Details
#store ⇒ Object
Returns the value of attribute store.
22 23 24 |
# File 'lib/kiqchestra/config.rb', line 22 def store @store end |