Class: Linkage::Runner
- Inherits:
-
Object
- Object
- Linkage::Runner
- Defined in:
- lib/linkage/runner.rb
Overview
Use this class to run a configuration created by Dataset#link_with.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#result_set ⇒ Object
readonly
Returns the value of attribute result_set.
Instance Method Summary collapse
- #execute ⇒ Object abstract
-
#initialize(config, uri = nil, options = {}) ⇒ Runner
constructor
A new instance of Runner.
Constructor Details
#initialize(config, uri = nil, options = {}) ⇒ Runner
Returns a new instance of Runner.
11 12 13 14 15 16 17 |
# File 'lib/linkage/runner.rb', line 11 def initialize(config, uri = nil, = {}) @config = config if uri warn("[DEPRECATION] Please use Configuration#save_results_in with the database URI and options instead") @config.save_results_in(uri, ) end end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
4 5 6 |
# File 'lib/linkage/runner.rb', line 4 def config @config end |
#result_set ⇒ Object (readonly)
Returns the value of attribute result_set.
4 5 6 |
# File 'lib/linkage/runner.rb', line 4 def result_set @result_set end |
Instance Method Details
#execute ⇒ Object
This method is abstract.
20 21 22 |
# File 'lib/linkage/runner.rb', line 20 def execute raise NotImplementedError end |