Class: ClarifaiRuby::TagImage
- Inherits:
-
Object
- Object
- ClarifaiRuby::TagImage
- Defined in:
- lib/clarifai_ruby/models/tag_image.rb
Instance Attribute Summary collapse
-
#docid ⇒ Object
readonly
Returns the value of attribute docid.
-
#docid_str ⇒ Object
readonly
Returns the value of attribute docid_str.
-
#local_id ⇒ Object
readonly
Returns the value of attribute local_id.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
-
#status_msg ⇒ Object
readonly
Returns the value of attribute status_msg.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#tags_by_words ⇒ Object
readonly
Returns the value of attribute tags_by_words.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(response_doc) ⇒ TagImage
constructor
A new instance of TagImage.
Constructor Details
#initialize(response_doc) ⇒ TagImage
Returns a new instance of TagImage.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/clarifai_ruby/models/tag_image.rb', line 13 def initialize(response_doc) @docid = response_doc["docid"] @docid_str = response_doc["docid_str"] @url = response_doc["url"] @status_code = response_doc["status_code"] @status_msg = response_doc["status_msg"] @local_id = response_doc["local_id"] = response_doc["result"]["tag"] = response_doc["result"]["tag"]["classes"] end |
Instance Attribute Details
#docid ⇒ Object (readonly)
Returns the value of attribute docid.
3 4 5 |
# File 'lib/clarifai_ruby/models/tag_image.rb', line 3 def docid @docid end |
#docid_str ⇒ Object (readonly)
Returns the value of attribute docid_str.
3 4 5 |
# File 'lib/clarifai_ruby/models/tag_image.rb', line 3 def docid_str @docid_str end |
#local_id ⇒ Object (readonly)
Returns the value of attribute local_id.
3 4 5 |
# File 'lib/clarifai_ruby/models/tag_image.rb', line 3 def local_id @local_id end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
3 4 5 |
# File 'lib/clarifai_ruby/models/tag_image.rb', line 3 def status_code @status_code end |
#status_msg ⇒ Object (readonly)
Returns the value of attribute status_msg.
3 4 5 |
# File 'lib/clarifai_ruby/models/tag_image.rb', line 3 def status_msg @status_msg end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
3 4 5 |
# File 'lib/clarifai_ruby/models/tag_image.rb', line 3 def end |
#tags_by_words ⇒ Object (readonly)
Returns the value of attribute tags_by_words.
3 4 5 |
# File 'lib/clarifai_ruby/models/tag_image.rb', line 3 def end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/clarifai_ruby/models/tag_image.rb', line 3 def url @url end |