Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentDocumentLayout

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

Returns a new instance of GoogleCloudDocumentaiV1beta2DocumentDocumentLayout.



4890
4891
4892
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4890

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

Instance Attribute Details

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

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



4888
4889
4890
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4888

def blocks
  @blocks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4895
4896
4897
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4895

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