Class: Cucumber::Messages::RuleChild
- 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
Overview
Instance Attribute Summary collapse
-
#background ⇒ Object
readonly
Returns the value of attribute background.
-
#scenario ⇒ Object
readonly
Returns the value of attribute scenario.
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new RuleChild from the given hash.
Instance Method Summary collapse
-
#initialize(background: nil, scenario: nil) ⇒ RuleChild
constructor
A new instance of RuleChild.
Methods included from Message::Utils
Methods included from Message::Serialization
Methods included from Message::Deserialization
Constructor Details
#initialize(background: nil, scenario: nil) ⇒ RuleChild
Returns a new instance of RuleChild.
588 589 590 591 592 593 594 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 588 def initialize( background: nil, scenario: nil ) @background = background @scenario = scenario end |
Instance Attribute Details
#background ⇒ Object (readonly)
Returns the value of attribute background.
584 585 586 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 584 def background @background end |
#scenario ⇒ Object (readonly)
Returns the value of attribute scenario.
586 587 588 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 586 def scenario @scenario end |
Class Method Details
.from_h(hash) ⇒ Object
305 306 307 308 309 310 311 312 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb', line 305 def self.from_h(hash) return nil if hash.nil? self.new( background: Background.from_h(hash[:background]), scenario: Scenario.from_h(hash[:scenario]), ) end |