Class: Html2rss::ItemExtractors::CurrentTime

Inherits:
Object
  • Object
show all
Defined in:
lib/html2rss/item_extractors/current_time.rb

Overview

Returns the current Time.

YAML usage example:

selectors:
  updated:
    extractor: current_time

Instance Method Summary collapse

Constructor Details

#initialize(_xml, _options) ⇒ CurrentTime



12
# File 'lib/html2rss/item_extractors/current_time.rb', line 12

def initialize(_xml, _options); end

Instance Method Details

#getTime



16
17
18
# File 'lib/html2rss/item_extractors/current_time.rb', line 16

def get
  Time.new
end