Class: Hydra::Messages::Runner::Results

Inherits:
Hydra::Message show all
Defined in:
lib/hydra/message/runner_messages.rb

Overview

Message for the Runner to respond with its results

Direct Known Subclasses

Worker::Results

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Hydra::Message

build, #initialize

Constructor Details

This class inherits a constructor from Hydra::Message

Instance Attribute Details

#fileObject

The file that was run



16
17
18
# File 'lib/hydra/message/runner_messages.rb', line 16

def file
  @file
end

#outputObject

The output from running the test



14
15
16
# File 'lib/hydra/message/runner_messages.rb', line 14

def output
  @output
end

Instance Method Details

#handle(worker, runner) ⇒ Object

:nodoc:



20
21
22
# File 'lib/hydra/message/runner_messages.rb', line 20

def handle(worker, runner) #:nodoc:
  worker.relay_results(self, runner)
end

#serializeObject

:nodoc:



17
18
19
# File 'lib/hydra/message/runner_messages.rb', line 17

def serialize #:nodoc:
  super(:output => @output, :file => @file)
end