Class: Textalytics::Api::ClassificationEntity::Category

Inherits:
Object
  • Object
show all
Defined in:
lib/textalytics/api/entities/classification_entity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_relevanceObject (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

#codeObject (readonly)

Returns the value of attribute code.



28
29
30
# File 'lib/textalytics/api/entities/classification_entity.rb', line 28

def code
  @code
end

#labelObject (readonly)

Returns the value of attribute label.



28
29
30
# File 'lib/textalytics/api/entities/classification_entity.rb', line 28

def label
  @label
end

#relevanceObject (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_listObject (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