Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell

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

Overview

Represents a cell in a table row.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell

Returns a new instance of GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell.



5066
5067
5068
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5066

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

Instance Attribute Details

#blocksArray<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock>

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



5054
5055
5056
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5054

def blocks
  @blocks
end

#col_spanFixnum

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

Returns:

  • (Fixnum)


5059
5060
5061
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5059

def col_span
  @col_span
end

#row_spanFixnum

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

Returns:

  • (Fixnum)


5064
5065
5066
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5064

def row_span
  @row_span
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5071
5072
5073
5074
5075
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5071

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