Class: Cucumber::Messages::TestRunStarted
- 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
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new TestRunStarted from the given hash.
Instance Method Summary collapse
-
#initialize(timestamp: Timestamp.new) ⇒ TestRunStarted
constructor
A new instance of TestRunStarted.
Methods included from Message::Utils
Methods included from Message::Serialization
Methods included from Message::Deserialization
Constructor Details
#initialize(timestamp: Timestamp.new) ⇒ TestRunStarted
Returns a new instance of TestRunStarted.
1743 1744 1745 1746 1747 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1743 def initialize( timestamp: Timestamp.new ) @timestamp = end |
Instance Attribute Details
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
1741 1742 1743 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1741 def @timestamp end |
Class Method Details
.from_h(hash) ⇒ Object
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... ...>
1068 1069 1070 1071 1072 1073 1074 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb', line 1068 def self.from_h(hash) return nil if hash.nil? self.new( timestamp: Timestamp.from_h(hash[:timestamp]), ) end |