Class: TextRazor::Topic

Inherits:
Object
  • Object
show all
Defined in:
lib/text_razor/topic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options={})
  @label = options['label']
  @score = options['score']
  @wiki_link = options['wiki_link']
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



3
4
5
# File 'lib/text_razor/topic.rb', line 3

def label
  @label
end

#scoreObject (readonly)

Returns the value of attribute score.



3
4
5
# File 'lib/text_razor/topic.rb', line 3

def score
  @score
end

Returns the value of attribute wiki_link.



3
4
5
# File 'lib/text_razor/topic.rb', line 3

def wiki_link
  @wiki_link
end