Class: Google::Apis::HealthcareV1alpha2::BoundingPoly

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/healthcare_v1alpha2/classes.rb,
generated/google/apis/healthcare_v1alpha2/representations.rb,
generated/google/apis/healthcare_v1alpha2/representations.rb

Overview

A bounding polygon for the detected image annotation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BoundingPoly

Returns a new instance of BoundingPoly



303
304
305
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 303

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

Instance Attribute Details

#labelString

Corresponds to the JSON property label

Returns:

  • (String)


296
297
298
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 296

def label
  @label
end

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

Corresponds to the JSON property vertices



301
302
303
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 301

def vertices
  @vertices
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



308
309
310
311
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 308

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