Class: Google::Apis::HealthcareV1alpha2::BoundingPoly
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1alpha2::BoundingPoly
- 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
-
#label ⇒ String
Corresponds to the JSON property
label
. -
#vertices ⇒ Array<Google::Apis::HealthcareV1alpha2::Vertex>
Corresponds to the JSON property
vertices
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BoundingPoly
constructor
A new instance of BoundingPoly.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BoundingPoly
Returns a new instance of BoundingPoly
303 304 305 |
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 303 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label ⇒ String
Corresponds to the JSON property label
296 297 298 |
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 296 def label @label end |
#vertices ⇒ Array<Google::Apis::HealthcareV1alpha2::Vertex>
Corresponds to the JSON property vertices
301 302 303 |
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 301 def vertices @vertices end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
308 309 310 311 |
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 308 def update!(**args) @label = args[:label] if args.key?(:label) @vertices = args[:vertices] if args.key?(:vertices) end |