Class: CognitiveVision::ImageFeature::Tag
- Inherits:
-
Object
- Object
- CognitiveVision::ImageFeature::Tag
- Defined in:
- lib/cognitive_vision/image_feature/tag.rb
Instance Method Summary collapse
Instance Method Details
#key ⇒ Object
4 5 6 |
# File 'lib/cognitive_vision/image_feature/tag.rb', line 4 def key 'tags' end |
#parse(response) ⇒ Object
8 9 10 |
# File 'lib/cognitive_vision/image_feature/tag.rb', line 8 def parse(response) response[key].map { |tag| CognitiveVision::Tag.new(name: tag['name'], confidence: tag['confidence']) } end |