Class: Google::Apis::HealthcareV1beta1::BoundingPoly

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#labelString

A description of this polygon. Corresponds to the JSON property label

Returns:

  • (String)


922
923
924
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 922

def label
  @label
end

#verticesArray<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