Class: Cucumber::Messages::TableCell
- 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
Represents the TableCell message in Cucumber’s message protocol.
A cell in a ‘TableRow`
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
The location of the cell.
-
#value ⇒ Object
readonly
The value of the cell.
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new TableCell from the given hash.
Instance Method Summary collapse
-
#initialize(location: Location.new, value: '') ⇒ TableCell
constructor
A new instance of TableCell.
Methods included from Message::Utils
Methods included from Message::Serialization
Methods included from Message::Deserialization
Constructor Details
#initialize(location: Location.new, value: '') ⇒ TableCell
Returns a new instance of TableCell.
709 710 711 712 713 714 715 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 709 def initialize( location: Location.new, value: '' ) @location = location @value = value end |
Instance Attribute Details
#location ⇒ Object (readonly)
The location of the cell
702 703 704 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 702 def location @location end |
#value ⇒ Object (readonly)
The value of the cell
707 708 709 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 707 def value @value end |
Class Method Details
.from_h(hash) ⇒ Object
375 376 377 378 379 380 381 382 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb', line 375 def self.from_h(hash) return nil if hash.nil? self.new( location: Location.from_h(hash[:location]), value: hash[:value], ) end |