Class: Cucumber::Messages::TableRow
- Defined in:
- lib/cucumber/messages/table_row.rb
Overview
Represents the TableRow message in Cucumber’s message protocol.
A row in a table
Instance Attribute Summary collapse
-
#cells ⇒ Object
readonly
Cells in the row.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#location ⇒ Object
readonly
The location of the first cell in the row.
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new TableRow from the given hash.
Instance Method Summary collapse
-
#initialize(location: Location.new, cells: [], id: '') ⇒ TableRow
constructor
A new instance of TableRow.
Methods inherited from Message
camelize, from_json, #to_h, #to_json
Constructor Details
#initialize(location: Location.new, cells: [], id: '') ⇒ TableRow
Returns a new instance of TableRow.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/cucumber/messages/table_row.rb', line 25 def initialize( location: Location.new, cells: [], id: '' ) @location = location @cells = cells @id = id super() end |
Instance Attribute Details
#cells ⇒ Object (readonly)
Cells in the row
21 22 23 |
# File 'lib/cucumber/messages/table_row.rb', line 21 def cells @cells end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
23 24 25 |
# File 'lib/cucumber/messages/table_row.rb', line 23 def id @id end |
#location ⇒ Object (readonly)
The location of the first cell in the row
16 17 18 |
# File 'lib/cucumber/messages/table_row.rb', line 16 def location @location end |