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.



541
542
543
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 541

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

Instance Attribute Details

#labelString

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

Returns:

  • (String)


534
535
536
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 534

def label
  @label
end

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

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



539
540
541
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 539

def vertices
  @vertices
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



546
547
548
549
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 546

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