class Cucumber::Messages::TestRunHookStarted

#
#
Represents the TestRunHookStarted message in Cucumber’s message protocol.
#

def self.from_h(hash)

#
Cucumber::Messages::TestRunHookStarted.from_h(some_hash) # => #

corresponding snake_cased attributes.
If the hash keys are camelCased, they are properly assigned to the
Returns a new TestRunHookStarted from the given hash.
#
def self.from_h(hash)
  return nil if hash.nil?
  new(
    id: hash[:id],
    test_run_started_id: hash[:testRunStartedId],
    hook_id: hash[:hookId],
    timestamp: Timestamp.from_h(hash[:timestamp])
  )
end

def initialize(

def initialize(
  id: '',
  test_run_started_id: '',
  hook_id: '',
  timestamp: Timestamp.new
)
  @id = id
  @test_run_started_id = test_run_started_id
  @hook_id = hook_id
  @timestamp = timestamp
  super()
end