Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock

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) ⇒ GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock

Returns a new instance of GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock.



3742
3743
3744
# File 'lib/google/apis/documentai_v1/classes.rb', line 3742

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

Instance Attribute Details

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

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



3730
3731
3732
# File 'lib/google/apis/documentai_v1/classes.rb', line 3730

def body_rows
  @body_rows
end

#captionString

Table caption/title. Corresponds to the JSON property caption

Returns:

  • (String)


3735
3736
3737
# File 'lib/google/apis/documentai_v1/classes.rb', line 3735

def caption
  @caption
end

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

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



3740
3741
3742
# File 'lib/google/apis/documentai_v1/classes.rb', line 3740

def header_rows
  @header_rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3747
3748
3749
3750
3751
# File 'lib/google/apis/documentai_v1/classes.rb', line 3747

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