class Cucumber::Messages::TestRunStarted
Represents the TestRunStarted
message in Cucumber’s message protocol.
Attributes
timestamp[R]
Public Class Methods
from_h(hash)
click to toggle source
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... ...>
# File lib/cucumber/messages/test_run_started.rb, line 27 def self.from_h(hash) return nil if hash.nil? new( timestamp: Timestamp.from_h(hash[:timestamp]) ) end
new( timestamp: Timestamp.new )
click to toggle source
Calls superclass method
# File lib/cucumber/messages/test_run_started.rb, line 13 def initialize( timestamp: Timestamp.new ) @timestamp = timestamp super() end