Class: Proxy::Dynflow::TaskLauncher::Abstract
- Inherits:
-
Object
- Object
- Proxy::Dynflow::TaskLauncher::Abstract
- Defined in:
- lib/smart_proxy_dynflow/task_launcher/abstract.rb
Instance Attribute Summary collapse
-
#callback ⇒ Object
readonly
Returns the value of attribute callback.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
-
#world ⇒ Object
readonly
Returns the value of attribute world.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(world, callback, options = {}) ⇒ Abstract
constructor
A new instance of Abstract.
- #launch!(_input) ⇒ Object
- #to_hash ⇒ Object
Constructor Details
#initialize(world, callback, options = {}) ⇒ Abstract
Returns a new instance of Abstract.
8 9 10 11 12 13 |
# File 'lib/smart_proxy_dynflow/task_launcher/abstract.rb', line 8 def initialize(world, callback, = {}) @world = world @callback = callback @options = @results = {} end |
Instance Attribute Details
#callback ⇒ Object (readonly)
Returns the value of attribute callback.
6 7 8 |
# File 'lib/smart_proxy_dynflow/task_launcher/abstract.rb', line 6 def callback @callback end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/smart_proxy_dynflow/task_launcher/abstract.rb', line 6 def @options end |
#results ⇒ Object (readonly)
Returns the value of attribute results.
6 7 8 |
# File 'lib/smart_proxy_dynflow/task_launcher/abstract.rb', line 6 def results @results end |
#world ⇒ Object (readonly)
Returns the value of attribute world.
6 7 8 |
# File 'lib/smart_proxy_dynflow/task_launcher/abstract.rb', line 6 def world @world end |
Class Method Details
.input_format ⇒ Object
19 |
# File 'lib/smart_proxy_dynflow/task_launcher/abstract.rb', line 19 def self.input_format; end |
.new_from_hash(world, hash) ⇒ Object
25 26 27 |
# File 'lib/smart_proxy_dynflow/task_launcher/abstract.rb', line 25 def self.new_from_hash(world, hash) ::Dynflow::Utils.constantize(hash[:class]).new(world, hash[:callback], hash[:options]) end |
Instance Method Details
#launch!(_input) ⇒ Object
15 16 17 |
# File 'lib/smart_proxy_dynflow/task_launcher/abstract.rb', line 15 def launch!(_input) raise NotImplementedError end |
#to_hash ⇒ Object
21 22 23 |
# File 'lib/smart_proxy_dynflow/task_launcher/abstract.rb', line 21 def to_hash { :class => self.class.to_s, :callback => callback, :options => } end |