Class: Google::Apis::ContentwarehouseV1::GoogleCloudDocumentaiV1DocumentPageDimension

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

Overview

Dimension for the page.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1DocumentPageDimension

Returns a new instance of GoogleCloudDocumentaiV1DocumentPageDimension.



5352
5353
5354
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 5352

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

Instance Attribute Details

#heightFloat

Page height. Corresponds to the JSON property height

Returns:

  • (Float)


5340
5341
5342
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 5340

def height
  @height
end

#unitString

Dimension unit. Corresponds to the JSON property unit

Returns:

  • (String)


5345
5346
5347
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 5345

def unit
  @unit
end

#widthFloat

Page width. Corresponds to the JSON property width

Returns:

  • (Float)


5350
5351
5352
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 5350

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5357
5358
5359
5360
5361
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 5357

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