class Cucumber::Messages::TestRunHookFinished
Represents the TestRunHookFinished message in Cucumberโs message protocol.
Attributes
Identifier for the hook execution that has finished
Public Class Methods
Source
# File lib/cucumber/messages/test_run_hook_finished.rb, line 38 def self.from_h(hash) return nil if hash.nil? new( test_run_hook_started_id: hash[:testRunHookStartedId], result: TestStepResult.from_h(hash[:result]), timestamp: Timestamp.from_h(hash[:timestamp]) ) end
Returns a new TestRunHookFinished from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::TestRunHookFinished.from_h(some_hash) # => #<Cucumber::Messages::TestRunHookFinished:0x... ...>
Source
# File lib/cucumber/messages/test_run_hook_finished.rb, line 20 def initialize( test_run_hook_started_id: '', result: TestStepResult.new, timestamp: Timestamp.new ) @test_run_hook_started_id = test_run_hook_started_id @result = result @timestamp = timestamp super() end
Calls superclass method