Class: Proxy::Dynflow::TaskLauncher::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_proxy_dynflow/task_launcher/abstract.rb

Direct Known Subclasses

Batch, Single

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(world, callback, options = {}) ⇒ Abstract

Returns a new instance of Abstract.



5
6
7
8
9
10
# File 'lib/smart_proxy_dynflow/task_launcher/abstract.rb', line 5

def initialize(world, callback, options = {})
  @world = world
  @callback = callback
  @options = options
  @results = {}
end

Instance Attribute Details

#callbackObject (readonly)

Returns the value of attribute callback.



4
5
6
# File 'lib/smart_proxy_dynflow/task_launcher/abstract.rb', line 4

def callback
  @callback
end

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/smart_proxy_dynflow/task_launcher/abstract.rb', line 4

def options
  @options
end

#resultsObject (readonly)

Returns the value of attribute results.



4
5
6
# File 'lib/smart_proxy_dynflow/task_launcher/abstract.rb', line 4

def results
  @results
end

#worldObject (readonly)

Returns the value of attribute world.



4
5
6
# File 'lib/smart_proxy_dynflow/task_launcher/abstract.rb', line 4

def world
  @world
end

Class Method Details

.input_formatObject



16
# File 'lib/smart_proxy_dynflow/task_launcher/abstract.rb', line 16

def self.input_format; end

Instance Method Details

#launch!(_input) ⇒ Object

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/smart_proxy_dynflow/task_launcher/abstract.rb', line 12

def launch!(_input)
  raise NotImplementedError
end