Class: Cucumber::Messages::TestCaseFinished
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb
Instance Attribute Summary collapse
-
#test_case_started_id ⇒ Object
readonly
Returns the value of attribute test_case_started_id.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#will_be_retried ⇒ Object
readonly
Returns the value of attribute will_be_retried.
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new TestCaseFinished from the given hash.
Instance Method Summary collapse
-
#initialize(test_case_started_id: '', timestamp: Timestamp.new, will_be_retried: false) ⇒ TestCaseFinished
constructor
A new instance of TestCaseFinished.
Methods included from Message::Utils
Methods included from Message::Serialization
Methods included from Message::Deserialization
Constructor Details
#initialize(test_case_started_id: '', timestamp: Timestamp.new, will_be_retried: false) ⇒ TestCaseFinished
Returns a new instance of TestCaseFinished.
1642 1643 1644 1645 1646 1647 1648 1649 1650 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1642 def initialize( test_case_started_id: '', timestamp: Timestamp.new, will_be_retried: false ) @test_case_started_id = test_case_started_id @timestamp = @will_be_retried = will_be_retried end |
Instance Attribute Details
#test_case_started_id ⇒ Object (readonly)
Returns the value of attribute test_case_started_id.
1636 1637 1638 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1636 def test_case_started_id @test_case_started_id end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
1638 1639 1640 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1638 def @timestamp end |
#will_be_retried ⇒ Object (readonly)
Returns the value of attribute will_be_retried.
1640 1641 1642 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1640 def will_be_retried @will_be_retried end |
Class Method Details
.from_h(hash) ⇒ Object
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... ...>
1004 1005 1006 1007 1008 1009 1010 1011 1012 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb', line 1004 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 |