class Cucumber::Messages::TestRunFinished

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

def self.from_h(hash)

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

corresponding snake_cased attributes.
If the hash keys are camelCased, they are properly assigned to the
Returns a new TestRunFinished from the given hash.
#
def self.from_h(hash)
  return nil if hash.nil?
  new(
    message: hash[:message],
    success: hash[:success],
    timestamp: Timestamp.from_h(hash[:timestamp]),
    exception: Exception.from_h(hash[:exception])
  )
end

def initialize(

def initialize(
  message: nil,
  success: false,
  timestamp: Timestamp.new,
  exception: nil
)
  @message = message
  @success = success
  @timestamp = timestamp
  @exception = exception
  super()
end