Class: CognitiveVision::DescriptionCaption
- Inherits:
-
Object
- Object
- CognitiveVision::DescriptionCaption
- Defined in:
- lib/cognitive_vision/description_caption.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
readonly
Returns the value of attribute confidence.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ DescriptionCaption
constructor
A new instance of DescriptionCaption.
Constructor Details
#initialize(options = {}) ⇒ DescriptionCaption
Returns a new instance of DescriptionCaption.
5 6 7 8 |
# File 'lib/cognitive_vision/description_caption.rb', line 5 def initialize( = {}) @confidence = .fetch(:confidence) @text = .fetch(:text) end |
Instance Attribute Details
#confidence ⇒ Object (readonly)
Returns the value of attribute confidence.
3 4 5 |
# File 'lib/cognitive_vision/description_caption.rb', line 3 def confidence @confidence end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
3 4 5 |
# File 'lib/cognitive_vision/description_caption.rb', line 3 def text @text end |