Class: Cucumber::Messages::Group
- 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
-
#children ⇒ Object
readonly
Returns the value of attribute children.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new Group from the given hash.
Instance Method Summary collapse
-
#initialize(children: [], start: nil, value: nil) ⇒ Group
constructor
A new instance of Group.
Methods included from Message::Utils
Methods included from Message::Serialization
Methods included from Message::Deserialization
Constructor Details
#initialize(children: [], start: nil, value: nil) ⇒ Group
Returns a new instance of Group.
1515 1516 1517 1518 1519 1520 1521 1522 1523 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1515 def initialize( children: [], start: nil, value: nil ) @children = children @start = start @value = value end |
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
1509 1510 1511 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1509 def children @children end |
#start ⇒ Object (readonly)
Returns the value of attribute start.
1511 1512 1513 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1511 def start @start end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
1513 1514 1515 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1513 def value @value end |
Class Method Details
.from_h(hash) ⇒ Object
921 922 923 924 925 926 927 928 929 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb', line 921 def self.from_h(hash) return nil if hash.nil? self.new( children: hash[:children]&.map { |item| Group.from_h(item) }, start: hash[:start], value: hash[:value], ) end |