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