class Cucumber::Messages::TestStepStarted
Attributes
test_case_started_id[R]
test_step_id[R]
timestamp[R]
Public Class Methods
from_h(hash)
click to toggle source
Returns a new TestStepStarted from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::TestStepStarted.from_h(some_hash) # => #<Cucumber::Messages::TestStepStarted:0x... ...>
# File lib/cucumber/messages.deserializers.rb, line 1156 def self.from_h(hash) return nil if hash.nil? self.new( test_case_started_id: hash[:testCaseStartedId], test_step_id: hash[:testStepId], timestamp: Timestamp.from_h(hash[:timestamp]), ) end
new( test_case_started_id: '', test_step_id: '', timestamp: Timestamp.new )
click to toggle source
# File lib/cucumber/messages.dtos.rb, line 1892 def initialize( test_case_started_id: '', test_step_id: '', timestamp: Timestamp.new ) @test_case_started_id = test_case_started_id @test_step_id = test_step_id @timestamp = timestamp end