Class: Cucumber::Messages::PickleTableRow
- 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
-
#cells ⇒ Object
readonly
Returns the value of attribute cells.
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new PickleTableRow from the given hash.
Instance Method Summary collapse
-
#initialize(cells: []) ⇒ PickleTableRow
constructor
A new instance of PickleTableRow.
Methods included from Message::Utils
Methods included from Message::Serialization
Methods included from Message::Deserialization
Constructor Details
#initialize(cells: []) ⇒ PickleTableRow
Returns a new instance of PickleTableRow.
1262 1263 1264 1265 1266 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1262 def initialize( cells: [] ) @cells = cells end |
Instance Attribute Details
#cells ⇒ Object (readonly)
Returns the value of attribute cells.
1260 1261 1262 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1260 def cells @cells end |
Class Method Details
.from_h(hash) ⇒ Object
Returns a new PickleTableRow from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::PickleTableRow.from_h(some_hash) # => #<Cucumber::Messages::PickleTableRow:0x... ...>
735 736 737 738 739 740 741 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb', line 735 def self.from_h(hash) return nil if hash.nil? self.new( cells: hash[:cells]&.map { |item| PickleTableCell.from_h(item) }, ) end |