Class: Google::Apis::ToolresultsV1beta3::RegionProto
- Inherits:
-
Object
- Object
- Google::Apis::ToolresultsV1beta3::RegionProto
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/toolresults_v1beta3/classes.rb,
generated/google/apis/toolresults_v1beta3/representations.rb,
generated/google/apis/toolresults_v1beta3/representations.rb
Overview
A rectangular region.
Instance Attribute Summary collapse
-
#height_px ⇒ Fixnum
The height, in pixels.
-
#left_px ⇒ Fixnum
The left side of the rectangle, in pixels.
-
#top_px ⇒ Fixnum
The top of the rectangle, in pixels.
-
#width_px ⇒ Fixnum
The width, in pixels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RegionProto
constructor
A new instance of RegionProto.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RegionProto
Returns a new instance of RegionProto.
2374 2375 2376 |
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2374 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height_px ⇒ Fixnum
The height, in pixels. Always set.
Corresponds to the JSON property heightPx
2357 2358 2359 |
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2357 def height_px @height_px end |
#left_px ⇒ Fixnum
The left side of the rectangle, in pixels. Always set.
Corresponds to the JSON property leftPx
2362 2363 2364 |
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2362 def left_px @left_px end |
#top_px ⇒ Fixnum
The top of the rectangle, in pixels. Always set.
Corresponds to the JSON property topPx
2367 2368 2369 |
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2367 def top_px @top_px end |
#width_px ⇒ Fixnum
The width, in pixels. Always set.
Corresponds to the JSON property widthPx
2372 2373 2374 |
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2372 def width_px @width_px end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2379 2380 2381 2382 2383 2384 |
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2379 def update!(**args) @height_px = args[:height_px] if args.key?(:height_px) @left_px = args[:left_px] if args.key?(:left_px) @top_px = args[:top_px] if args.key?(:top_px) @width_px = args[:width_px] if args.key?(:width_px) end |