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

Returns a new instance of CurrentTime



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

def initialize(_xml, _options); end

Instance Method Details

#getTime

Returns:

  • (Time)


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

def get
  Time.new
end