Class: Html2rss::AttributePostProcessors::ParseTime

Inherits:
Object
  • Object
show all
Defined in:
lib/html2rss/attribute_post_processors/parse_time.rb

Instance Method Summary collapse

Constructor Details

#initialize(value, _options, _item) ⇒ ParseTime

Returns a new instance of ParseTime.



4
5
6
# File 'lib/html2rss/attribute_post_processors/parse_time.rb', line 4

def initialize(value, _options, _item)
  @value = value
end

Instance Method Details

#getObject



8
9
10
# File 'lib/html2rss/attribute_post_processors/parse_time.rb', line 8

def get
  Time.parse(@value).rfc822
end