Class: Cucumber::Events::TestRunHookStarted

Inherits:
Base
  • Object
show all
Defined in:
lib/cucumber/events/test_run_hook_started.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) ⇒ TestRunHookStarted

Returns a new instance of TestRunHookStarted.



14
15
16
17
# File 'lib/cucumber/events/test_run_hook_started.rb', line 14

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

Instance Attribute Details

#hookObject (readonly)

Returns the value of attribute hook.



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

def hook
  @hook
end

Class Method Details

.event_idObject



10
11
12
# File 'lib/cucumber/events/test_run_hook_started.rb', line 10

def self.event_id
  :test_run_hook_started
end