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.
16 17 18 19 20 |
# File 'lib/planetruby2feed.rb', line 16 def initialize @logger = Logger.new(STDOUT) @logger.level = Logger::WARN @posts = [] end |
Instance Attribute Details
#posts ⇒ Object
Returns the value of attribute posts.
14 15 16 |
# File 'lib/planetruby2feed.rb', line 14 def posts @posts end |
Class Method Details
.run! ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/planetruby2feed.rb', line 22 def self.run! @planet = self.new @planet.get_page @planet.find_posts Planetruby2feed::Webserver.set :posts, @planet.posts Planetruby2feed::Webserver.run! end |