Class: Planetruby2feed::Base
- Inherits:
-
Object
- Object
- Planetruby2feed::Base
- Defined in:
- lib/planetruby2feed.rb
Instance Attribute Summary collapse
-
#posts ⇒ Object
Returns the value of attribute posts.
Attributes included from Scraper
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
Methods included from Parser
Methods included from Scraper
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
15 16 17 18 19 |
# File 'lib/planetruby2feed.rb', line 15 def initialize @logger = Logger.new(STDOUT) @logger.level = Logger::WARN @posts = [] end |
Instance Attribute Details
#posts ⇒ Object
Returns the value of attribute posts.
13 14 15 |
# File 'lib/planetruby2feed.rb', line 13 def posts @posts end |
Class Method Details
.run! ⇒ Object
21 22 23 24 25 26 |
# File 'lib/planetruby2feed.rb', line 21 def self.run! @planet = self.new @planet.get_page @planet.find_posts @planet end |