Class: TextRazor::Category

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/textrazor/category.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util

included

Constructor Details

#initialize(params = {}) ⇒ Category

Returns a new instance of Category.



9
10
11
# File 'lib/textrazor/category.rb', line 9

def initialize(params = {})
  initialize_params params
end

Instance Attribute Details

#category_idObject (readonly)

Returns the value of attribute category_id.



7
8
9
# File 'lib/textrazor/category.rb', line 7

def category_id
  @category_id
end

#classifier_idObject (readonly)

Returns the value of attribute classifier_id.



7
8
9
# File 'lib/textrazor/category.rb', line 7

def classifier_id
  @classifier_id
end

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/textrazor/category.rb', line 7

def id
  @id
end

#labelObject (readonly)

Returns the value of attribute label.



7
8
9
# File 'lib/textrazor/category.rb', line 7

def label
  @label
end

#scoreObject (readonly)

Returns the value of attribute score.



7
8
9
# File 'lib/textrazor/category.rb', line 7

def score
  @score
end