Class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TableTableCell

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

Overview

A cell representation inside of tables.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVisionV1p5beta1TableTableCell

Returns a new instance of GoogleCloudVisionV1p5beta1TableTableCell



10432
10433
10434
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 10432

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

Instance Attribute Details

#col_spanFixnum

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

Returns:

  • (Fixnum)


10414
10415
10416
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 10414

def col_span
  @col_span
end

#row_spanFixnum

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

Returns:

  • (Fixnum)


10419
10420
10421
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 10419

def row_span
  @row_span
end

#textString

The merged text value of this cell, omitting any deeper structural information unlike text_block. This is useful for simple cells. Corresponds to the JSON property text

Returns:

  • (String)


10425
10426
10427
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 10425

def text
  @text
end

#text_blockGoogle::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Block

Logical element on the page. Corresponds to the JSON property textBlock



10430
10431
10432
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 10430

def text_block
  @text_block
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10437
10438
10439
10440
10441
10442
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 10437

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