class Cucumber::Messages::TableRow
def self.from_h(hash)
def self.from_h(hash) return nil if hash.nil? self.new( location: Location.from_h(hash[:location]), cells: hash[:cells]&.map { |item| TableCell.from_h(item) }, id: hash[:id], ) end
def initialize(
def initialize( location: Location.new, cells: [], id: '' ) @location = location @cells = cells @id = id end