Class: TextRazor::CoarseTopic
- Inherits:
-
Object
- Object
- TextRazor::CoarseTopic
- Defined in:
- lib/text_razor/coarse_topic.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
-
#wiki_link ⇒ Object
readonly
Returns the value of attribute wiki_link.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ CoarseTopic
constructor
A new instance of CoarseTopic.
Constructor Details
#initialize(options = {}) ⇒ CoarseTopic
Returns a new instance of CoarseTopic.
5 6 7 8 9 |
# File 'lib/text_razor/coarse_topic.rb', line 5 def initialize(={}) @label = ['label'] @score = ['score'] @wiki_link = ['wiki_link'] end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
3 4 5 |
# File 'lib/text_razor/coarse_topic.rb', line 3 def label @label end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
3 4 5 |
# File 'lib/text_razor/coarse_topic.rb', line 3 def score @score end |
#wiki_link ⇒ Object (readonly)
Returns the value of attribute wiki_link.
3 4 5 |
# File 'lib/text_razor/coarse_topic.rb', line 3 def wiki_link @wiki_link end |