Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayout

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 the parsed layout of a document as a collection of blocks that the document is divided into.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1DocumentDocumentLayout

Returns a new instance of GoogleCloudDocumentaiV1DocumentDocumentLayout.



2092
2093
2094
# File 'lib/google/apis/documentai_v1/classes.rb', line 2092

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

Instance Attribute Details

#blocksArray<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock>

List of blocks in the document. Corresponds to the JSON property blocks



2090
2091
2092
# File 'lib/google/apis/documentai_v1/classes.rb', line 2090

def blocks
  @blocks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2097
2098
2099
# File 'lib/google/apis/documentai_v1/classes.rb', line 2097

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