Class: Cucumber::Messages::DataTable
- Defined in:
- lib/cucumber/messages/data_table.rb
Overview
Represents the DataTable message in Cucumber’s message protocol.
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new DataTable from the given hash.
Instance Method Summary collapse
-
#initialize(location: Location.new, rows: []) ⇒ DataTable
constructor
A new instance of DataTable.
Methods inherited from Message
camelize, from_json, #to_h, #to_json
Constructor Details
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
11 12 13 |
# File 'lib/cucumber/messages/data_table.rb', line 11 def location @location end |
#rows ⇒ Object (readonly)
Returns the value of attribute rows.
13 14 15 |
# File 'lib/cucumber/messages/data_table.rb', line 13 def rows @rows end |