Returns the id of the entry or its url if not id is present, as some formats don't support it
# File lib/feedzirra/feed_entry_utilities.rb, line 18 def id @entry_id || @url end
# File lib/feedzirra/feed_entry_utilities.rb, line 7 def parse_datetime(string) begin DateTime.parse(string).feed_utils_to_gm_time rescue puts "DATE CAN'T BE PARSED: #{string}" nil end end
# File lib/feedzirra/feed_entry_utilities.rb, line 3 def published @published || @updated end
Writter for published. By default, we keep the "oldest" publish time found.
# File lib/feedzirra/feed_entry_utilities.rb, line 24 def published=(val) parsed = parse_datetime(val) @published = parsed if !@published || parsed < @published end
Generated with the Darkfish Rdoc Generator 2.