Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ImageLocation

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

Overview

Bounding box encompassing detected text within an image.

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

Returns a new instance of GooglePrivacyDlpV2beta1ImageLocation



1262
1263
1264
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1262

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

Instance Attribute Details

#heightFixnum

Height of the bounding box in pixels. Corresponds to the JSON property height

Returns:

  • (Fixnum)


1245
1246
1247
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1245

def height
  @height
end

#leftFixnum

Left coordinate of the bounding box. (0,0) is upper left. Corresponds to the JSON property left

Returns:

  • (Fixnum)


1250
1251
1252
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1250

def left
  @left
end

#topFixnum

Top coordinate of the bounding box. (0,0) is upper left. Corresponds to the JSON property top

Returns:

  • (Fixnum)


1255
1256
1257
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1255

def top
  @top
end

#widthFixnum

Width of the bounding box in pixels. Corresponds to the JSON property width

Returns:

  • (Fixnum)


1260
1261
1262
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1260

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1267
1268
1269
1270
1271
1272
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1267

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