Class: Textalytics::Api::ClassificationEntity::Category
- Inherits:
-
Object
- Object
- Textalytics::Api::ClassificationEntity::Category
- Defined in:
- lib/textalytics/api/entities/classification_entity.rb
Instance Attribute Summary collapse
-
#abs_relevance ⇒ Object
readonly
Returns the value of attribute abs_relevance.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#relevance ⇒ Object
readonly
Returns the value of attribute relevance.
-
#term_list ⇒ Object
readonly
Returns the value of attribute term_list.
Instance Method Summary collapse
-
#initialize(args) ⇒ Category
constructor
A new instance of Category.
Constructor Details
#initialize(args) ⇒ Category
Returns a new instance of Category.
30 31 32 33 34 35 36 |
# File 'lib/textalytics/api/entities/classification_entity.rb', line 30 def initialize(args) @code = args[:code] @label = args[:label] @abs_relevance = args[:abs_relevance] @relevance = args[:relevance] @term_list = term_list end |
Instance Attribute Details
#abs_relevance ⇒ Object (readonly)
Returns the value of attribute abs_relevance.
28 29 30 |
# File 'lib/textalytics/api/entities/classification_entity.rb', line 28 def abs_relevance @abs_relevance end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
28 29 30 |
# File 'lib/textalytics/api/entities/classification_entity.rb', line 28 def code @code end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
28 29 30 |
# File 'lib/textalytics/api/entities/classification_entity.rb', line 28 def label @label end |
#relevance ⇒ Object (readonly)
Returns the value of attribute relevance.
28 29 30 |
# File 'lib/textalytics/api/entities/classification_entity.rb', line 28 def relevance @relevance end |
#term_list ⇒ Object (readonly)
Returns the value of attribute term_list.
28 29 30 |
# File 'lib/textalytics/api/entities/classification_entity.rb', line 28 def term_list @term_list end |