Class: LiveBlogPluginIndexer
- Inherits:
-
Object
- Object
- LiveBlogPluginIndexer
- Defined in:
- lib/liveblog-plugin-indexer.rb
Instance Method Summary collapse
-
#initialize(settings: {}, variables: {}) ⇒ LiveBlogPluginIndexer
constructor
A new instance of LiveBlogPluginIndexer.
- #on_new_day(filepath, urlpath) ⇒ Object
Constructor Details
#initialize(settings: {}, variables: {}) ⇒ LiveBlogPluginIndexer
Returns a new instance of LiveBlogPluginIndexer.
11 12 13 14 15 |
# File 'lib/liveblog-plugin-indexer.rb', line 11 def initialize(settings: {}, variables: {}) @urlbase = variables[:urlbase] end |
Instance Method Details
#on_new_day(filepath, urlpath) ⇒ Object
17 18 19 20 21 |
# File 'lib/liveblog-plugin-indexer.rb', line 17 def on_new_day(filepath, urlpath) LiveBlogIndexer.new.crawl @urlbase + urlpath + 'formatted.xml' end |