Class: CognitiveVision::Tag

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Tag

Returns a new instance of Tag.



5
6
7
8
# File 'lib/cognitive_vision/tag.rb', line 5

def initialize(options = {})
  @confidence = options.fetch(:confidence)
  @name       = options.fetch(:name)
end

Instance Attribute Details

#confidenceObject (readonly)

Returns the value of attribute confidence.



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

def confidence
  @confidence
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end