Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayout

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

Returns a new instance of GoogleCloudDocumentaiV1beta3DocumentDocumentLayout.



3049
3050
3051
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 3049

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

Instance Attribute Details

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

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



3047
3048
3049
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 3047

def blocks
  @blocks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3054
3055
3056
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 3054

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