Class: Google::Apis::ToolresultsV1beta3::RegionProto

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

Overview

A rectangular region.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RegionProto

Returns a new instance of RegionProto.



2427
2428
2429
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2427

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

Instance Attribute Details

#height_pxFixnum

The height, in pixels. Always set. Corresponds to the JSON property heightPx

Returns:

  • (Fixnum)


2410
2411
2412
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2410

def height_px
  @height_px
end

#left_pxFixnum

The left side of the rectangle, in pixels. Always set. Corresponds to the JSON property leftPx

Returns:

  • (Fixnum)


2415
2416
2417
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2415

def left_px
  @left_px
end

#top_pxFixnum

The top of the rectangle, in pixels. Always set. Corresponds to the JSON property topPx

Returns:

  • (Fixnum)


2420
2421
2422
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2420

def top_px
  @top_px
end

#width_pxFixnum

The width, in pixels. Always set. Corresponds to the JSON property widthPx

Returns:

  • (Fixnum)


2425
2426
2427
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2425

def width_px
  @width_px
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2432
2433
2434
2435
2436
2437
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2432

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