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