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