Class: Cucumber::Events::TestRunHookFinished

Inherits:
Base
  • Object
show all
Defined in:
lib/cucumber/events/test_run_hook_finished.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#event_id, #to_h

Constructor Details

#initialize(hook, test_result) ⇒ TestRunHookFinished

Returns a new instance of TestRunHookFinished.



12
13
14
15
16
# File 'lib/cucumber/events/test_run_hook_finished.rb', line 12

def initialize(hook, test_result)
  @hook = hook
  @test_result = test_result
  super()
end

Instance Attribute Details

#hookObject (readonly)

Returns the value of attribute hook.



6
7
8
# File 'lib/cucumber/events/test_run_hook_finished.rb', line 6

def hook
  @hook
end

#test_resultObject (readonly)

Returns the value of attribute test_result.



6
7
8
# File 'lib/cucumber/events/test_run_hook_finished.rb', line 6

def test_result
  @test_result
end

Class Method Details

.event_idObject



8
9
10
# File 'lib/cucumber/events/test_run_hook_finished.rb', line 8

def self.event_id
  :test_run_hook_finished
end