Class: TextRazor::Topic
Instance Attribute Summary collapse
-
#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.
-
#wiki_link ⇒ Object
readonly
Returns the value of attribute wiki_link.
-
#wikidata_id ⇒ Object
readonly
Returns the value of attribute wikidata_id.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Topic
constructor
A new instance of Topic.
Methods included from Util
Constructor Details
#initialize(params = {}) ⇒ Topic
Returns a new instance of Topic.
9 10 11 |
# File 'lib/textrazor/topic.rb', line 9 def initialize(params = {}) initialize_params params end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/textrazor/topic.rb', line 7 def id @id end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
7 8 9 |
# File 'lib/textrazor/topic.rb', line 7 def label @label end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
7 8 9 |
# File 'lib/textrazor/topic.rb', line 7 def score @score end |
#wiki_link ⇒ Object (readonly)
Returns the value of attribute wiki_link.
7 8 9 |
# File 'lib/textrazor/topic.rb', line 7 def wiki_link @wiki_link end |
#wikidata_id ⇒ Object (readonly)
Returns the value of attribute wikidata_id.
7 8 9 |
# File 'lib/textrazor/topic.rb', line 7 def wikidata_id @wikidata_id end |