Class: TextRazor::Topic
- Inherits:
-
Object
- Object
- TextRazor::Topic
- Defined in:
- lib/text_razor/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 = {}) ⇒ Topic
constructor
A new instance of Topic.
Constructor Details
#initialize(options = {}) ⇒ Topic
Returns a new instance of Topic.
5 6 7 8 9 |
# File 'lib/text_razor/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/topic.rb', line 3 def label @label end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
3 4 5 |
# File 'lib/text_razor/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/topic.rb', line 3 def wiki_link @wiki_link end |