class Cucumber::Messages::TestStepResult

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

def self.from_h(hash)

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

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

def initialize(

def initialize(
  duration: Duration.new,
  message: nil,
  status: TestStepResultStatus::UNKNOWN,
  exception: nil
)
  @duration = duration
  @message = message
  @status = status
  @exception = exception
  super()
end