Class: CognitiveVision::Tag
- Inherits:
-
Object
- Object
- CognitiveVision::Tag
- Defined in:
- lib/cognitive_vision/tag.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
readonly
Returns the value of attribute confidence.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Tag
constructor
A new instance of Tag.
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( = {}) @confidence = .fetch(:confidence) @name = .fetch(:name) end |
Instance Attribute Details
#confidence ⇒ Object (readonly)
Returns the value of attribute confidence.
3 4 5 |
# File 'lib/cognitive_vision/tag.rb', line 3 def confidence @confidence end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/cognitive_vision/tag.rb', line 3 def name @name end |