Class: CognitiveVision::Description

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @captions = options.fetch(:captions, [])
  @tags     = options.fetch(:tags, [])
end

Instance Attribute Details

#captionsObject (readonly)

Returns the value of attribute captions.



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

def captions
  @captions
end

#tagsObject (readonly)

Returns the value of attribute tags.



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

def tags
  @tags
end