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.



957
958
959
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 957

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

Instance Attribute Details

#labelString

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

Returns:

  • (String)


950
951
952
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 950

def label
  @label
end

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

List of the vertices of this polygon. Corresponds to the JSON property vertices



955
956
957
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 955

def vertices
  @vertices
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



962
963
964
965
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 962

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