Class: Gcp::Vision::Annotation::Label

Inherits:
Object
  • Object
show all
Defined in:
lib/gcp/vision/annotation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(annotation) ⇒ Label

Returns a new instance of Label.



23
24
25
26
27
# File 'lib/gcp/vision/annotation.rb', line 23

def initialize(annotation)
  @mid         = annotation["mid"]
  @description = annotation["description"]
  @score       = annotation["score"]
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



21
22
23
# File 'lib/gcp/vision/annotation.rb', line 21

def description
  @description
end

#midObject (readonly)

Returns the value of attribute mid.



21
22
23
# File 'lib/gcp/vision/annotation.rb', line 21

def mid
  @mid
end

#scoreObject (readonly)

Returns the value of attribute score.



21
22
23
# File 'lib/gcp/vision/annotation.rb', line 21

def score
  @score
end