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

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

Instance Method Summary collapse

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

#labelString

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

Returns:

  • (String)


515
516
517
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 515

def label
  @label
end

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