Class: TildeScraper::TextTopic

Inherits:
Topic
  • Object
show all
Defined in:
lib/tilde_scraper/topic/text_topic.rb

Instance Attribute Summary collapse

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

#create, #create_from_array

Methods included from Memorable::InstanceMethods

#add_attributes, #initialize

Instance Attribute Details

#topic_textObject

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

#contentObject



8
9
10
# File 'lib/tilde_scraper/topic/text_topic.rb', line 8

def content
  topic_text
end

#display_contentObject



12
13
14
# File 'lib/tilde_scraper/topic/text_topic.rb', line 12

def display_content
  puts topic_text
end

#typeObject



4
5
6
# File 'lib/tilde_scraper/topic/text_topic.rb', line 4

def type
  "text"
end