Class: ClarifaiRuby::Tag
- Inherits:
-
Object
- Object
- ClarifaiRuby::Tag
- Defined in:
- lib/clarifai_ruby/models/tag.rb
Instance Attribute Summary collapse
-
#concept_id ⇒ Object
readonly
Returns the value of attribute concept_id.
-
#prob ⇒ Object
readonly
Returns the value of attribute prob.
-
#word ⇒ Object
readonly
Returns the value of attribute word.
Instance Method Summary collapse
-
#initialize(word, prob, concept_id = nil) ⇒ Tag
constructor
A new instance of Tag.
Constructor Details
#initialize(word, prob, concept_id = nil) ⇒ Tag
Returns a new instance of Tag.
5 6 7 8 9 |
# File 'lib/clarifai_ruby/models/tag.rb', line 5 def initialize(word, prob, concept_id=nil) @word = word @prob = prob @concept_id = concept_id end |
Instance Attribute Details
#concept_id ⇒ Object (readonly)
Returns the value of attribute concept_id.
3 4 5 |
# File 'lib/clarifai_ruby/models/tag.rb', line 3 def concept_id @concept_id end |
#prob ⇒ Object (readonly)
Returns the value of attribute prob.
3 4 5 |
# File 'lib/clarifai_ruby/models/tag.rb', line 3 def prob @prob end |
#word ⇒ Object (readonly)
Returns the value of attribute word.
3 4 5 |
# File 'lib/clarifai_ruby/models/tag.rb', line 3 def word @word end |