Class: Google::Apis::HealthcareV1alpha2::BoundingPoly

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

Overview

A bounding polygon for the detected image annotation.

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

Returns a new instance of BoundingPoly



312
313
314
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 312

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

Instance Attribute Details

#labelString

Corresponds to the JSON property label

Returns:

  • (String)


305
306
307
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 305

def label
  @label
end

#verticesArray<Google::Apis::HealthcareV1alpha2::Vertex>

Corresponds to the JSON property vertices



310
311
312
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 310

def vertices
  @vertices
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



317
318
319
320
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 317

def update!(**args)
  @label = args[:label] if args.key?(:label)
  @vertices = args[:vertices] if args.key?(:vertices)
end