Class: TextRazor::Category
- Inherits:
-
Object
- Object
- TextRazor::Category
- Includes:
- Util
- Defined in:
- lib/textrazor/category.rb
Instance Attribute Summary collapse
-
#category_id ⇒ Object
readonly
Returns the value of attribute category_id.
-
#classifier_id ⇒ Object
readonly
Returns the value of attribute classifier_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Category
constructor
A new instance of Category.
Methods included from Util
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_id ⇒ Object (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_id ⇒ Object (readonly)
Returns the value of attribute classifier_id.
7 8 9 |
# File 'lib/textrazor/category.rb', line 7 def classifier_id @classifier_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/textrazor/category.rb', line 7 def id @id end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
7 8 9 |
# File 'lib/textrazor/category.rb', line 7 def label @label end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
7 8 9 |
# File 'lib/textrazor/category.rb', line 7 def score @score end |