Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell

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

Overview

Represents a cell in a table row.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell

Returns a new instance of GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell.



4949
4950
4951
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 4949

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

Instance Attribute Details

#blocksArray<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock>

A table cell is a list of blocks. Repeated blocks support further hierarchies and nested blocks. Corresponds to the JSON property blocks



4937
4938
4939
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 4937

def blocks
  @blocks
end

#col_spanFixnum

How many columns this cell spans. Corresponds to the JSON property colSpan

Returns:

  • (Fixnum)


4942
4943
4944
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 4942

def col_span
  @col_span
end

#row_spanFixnum

How many rows this cell spans. Corresponds to the JSON property rowSpan

Returns:

  • (Fixnum)


4947
4948
4949
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 4947

def row_span
  @row_span
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4954
4955
4956
4957
4958
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 4954

def update!(**args)
  @blocks = args[:blocks] if args.key?(:blocks)
  @col_span = args[:col_span] if args.key?(:col_span)
  @row_span = args[:row_span] if args.key?(:row_span)
end