Class: TildeScraper::TextTopic
- Defined in:
- lib/tilde_scraper/topic/text_topic.rb
Instance Attribute Summary collapse
-
#topic_text ⇒ Object
Returns the value of attribute topic_text.
Attributes inherited from Topic
#age, #comment_count, #comment_link, #group, #page_id, #title, #votes, #word_count
Instance Method Summary collapse
Methods inherited from Topic
all, #comments, create_from_array, #display, find_by_page_id
Methods included from Memorable::ClassMethods
Methods included from Memorable::InstanceMethods
Instance Attribute Details
#topic_text ⇒ Object
Returns the value of attribute topic_text.
2 3 4 |
# File 'lib/tilde_scraper/topic/text_topic.rb', line 2 def topic_text @topic_text end |
Instance Method Details
#content ⇒ Object
8 9 10 |
# File 'lib/tilde_scraper/topic/text_topic.rb', line 8 def content topic_text end |
#display_content ⇒ Object
12 13 14 |
# File 'lib/tilde_scraper/topic/text_topic.rb', line 12 def display_content puts topic_text end |
#type ⇒ Object
4 5 6 |
# File 'lib/tilde_scraper/topic/text_topic.rb', line 4 def type "text" end |