class Cucumber::Messages::TestRunStarted
Attributes
Public Class Methods
Source
# File lib/cucumber/messages.deserializers.rb, line 1067 def self.from_h(hash) return nil if hash.nil? self.new( timestamp: Timestamp.from_h(hash[:timestamp]), ) end
Returns a new TestRunStarted
from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::TestRunStarted.from_h(some_hash) # => #<Cucumber::Messages::TestRunStarted:0x... ...>
Source
# File lib/cucumber/messages.dtos.rb, line 1741 def initialize( timestamp: Timestamp.new ) @timestamp = timestamp end