class Cucumber::Messages::FeatureChild
Represents the FeatureChild message in Cucumber's message protocol.
*
A child node of a `Feature` node
Attributes
background[R]
rule[R]
scenario[R]
Public Class Methods
from_h(hash)
click to toggle source
Returns a new FeatureChild from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::FeatureChild.from_h(some_hash) # => #<Cucumber::Messages::FeatureChild:0x... ...>
# File lib/cucumber/messages.deserializers.rb, line 279 def self.from_h(hash) return nil if hash.nil? self.new( rule: Rule.from_h(hash[:rule]), background: Background.from_h(hash[:background]), scenario: Scenario.from_h(hash[:scenario]), ) end
new( rule: nil, background: nil, scenario: nil )
click to toggle source
# File lib/cucumber/messages.dtos.rb, line 543 def initialize( rule: nil, background: nil, scenario: nil ) @rule = rule @background = background @scenario = scenario end