Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/documentai_v1/classes.rb,
lib/google/apis/documentai_v1/representations.rb,
lib/google/apis/documentai_v1/representations.rb

Overview

Represents a table type block.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock

Returns a new instance of GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock.



6580
6581
6582
# File 'lib/google/apis/documentai_v1/classes.rb', line 6580

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#body_rowsArray<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>

Body rows containing main table content. Corresponds to the JSON property bodyRows



6568
6569
6570
# File 'lib/google/apis/documentai_v1/classes.rb', line 6568

def body_rows
  @body_rows
end

#captionString

Table caption/title. Corresponds to the JSON property caption

Returns:

  • (String)


6573
6574
6575
# File 'lib/google/apis/documentai_v1/classes.rb', line 6573

def caption
  @caption
end

#header_rowsArray<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>

Header rows at the top of the table. Corresponds to the JSON property headerRows



6578
6579
6580
# File 'lib/google/apis/documentai_v1/classes.rb', line 6578

def header_rows
  @header_rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6585
6586
6587
6588
6589
# File 'lib/google/apis/documentai_v1/classes.rb', line 6585

def update!(**args)
  @body_rows = args[:body_rows] if args.key?(:body_rows)
  @caption = args[:caption] if args.key?(:caption)
  @header_rows = args[:header_rows] if args.key?(:header_rows)
end