class Cucumber::Messages::TestRunHookStarted
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