Class: CognitiveVision::DescriptionCaption

Inherits:
Object
  • Object
show all
Defined in:
lib/cognitive_vision/description_caption.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @confidence = options.fetch(:confidence)
  @text       = options.fetch(:text)
end

Instance Attribute Details

#confidenceObject (readonly)

Returns the value of attribute confidence.



3
4
5
# File 'lib/cognitive_vision/description_caption.rb', line 3

def confidence
  @confidence
end

#textObject (readonly)

Returns the value of attribute text.



3
4
5
# File 'lib/cognitive_vision/description_caption.rb', line 3

def text
  @text
end