Class: Gcp::Vision::Annotation::Label
- Inherits:
-
Object
- Object
- Gcp::Vision::Annotation::Label
- Defined in:
- lib/gcp/vision/annotation.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#mid ⇒ Object
readonly
Returns the value of attribute mid.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
Instance Method Summary collapse
-
#initialize(annotation) ⇒ Label
constructor
A new instance of Label.
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
21 22 23 |
# File 'lib/gcp/vision/annotation.rb', line 21 def description @description end |
#mid ⇒ Object (readonly)
Returns the value of attribute mid.
21 22 23 |
# File 'lib/gcp/vision/annotation.rb', line 21 def mid @mid end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
21 22 23 |
# File 'lib/gcp/vision/annotation.rb', line 21 def score @score end |