Class: Google::Apis::HealthcareV1beta1::BoundingPoly
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::BoundingPoly
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/healthcare_v1beta1/classes.rb,
generated/google/apis/healthcare_v1beta1/representations.rb,
generated/google/apis/healthcare_v1beta1/representations.rb
Overview
A bounding polygon for the detected image annotation.
Instance Attribute Summary collapse
-
#label ⇒ String
A description of this polygon.
-
#vertices ⇒ Array<Google::Apis::HealthcareV1beta1::Vertex>
List of the vertices of this polygon.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BoundingPoly
constructor
A new instance of BoundingPoly.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BoundingPoly
Returns a new instance of BoundingPoly.
522 523 524 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 522 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label ⇒ String
A description of this polygon.
Corresponds to the JSON property label
515 516 517 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 515 def label @label end |
#vertices ⇒ Array<Google::Apis::HealthcareV1beta1::Vertex>
List of the vertices of this polygon.
Corresponds to the JSON property vertices
520 521 522 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 520 def vertices @vertices end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
527 528 529 530 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 527 def update!(**args) @label = args[:label] if args.key?(:label) @vertices = args[:vertices] if args.key?(:vertices) end |