Class: Google::Apis::HealthcareV1beta1::BoundingPoly
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::BoundingPoly
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/healthcare_v1beta1/classes.rb,
lib/google/apis/healthcare_v1beta1/representations.rb,
lib/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.
929 930 931 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 929 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label ⇒ String
A description of this polygon.
Corresponds to the JSON property label
922 923 924 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 922 def label @label end |
#vertices ⇒ Array<Google::Apis::HealthcareV1beta1::Vertex>
List of the vertices of this polygon.
Corresponds to the JSON property vertices
927 928 929 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 927 def vertices @vertices end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
934 935 936 937 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 934 def update!(**args) @label = args[:label] if args.key?(:label) @vertices = args[:vertices] if args.key?(:vertices) end |