Module: Feedzirra::FeedEntryUtilities

Included in:
AtomEntry, AtomFeedBurnerEntry, RDFEntry, RSSEntry
Defined in:
lib/feedzirra/feed_entry_utilities.rb

Defined Under Namespace

Modules: Sanitize

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#publishedObject Also known as: last_modified

Returns the value of attribute published.



13
14
15
# File 'lib/feedzirra/feed_entry_utilities.rb', line 13

def published
  @published
end

Instance Method Details

#authorObject



31
32
33
# File 'lib/feedzirra/feed_entry_utilities.rb', line 31

def author
  @author.extend(Sanitize)
end

#contentObject



23
24
25
# File 'lib/feedzirra/feed_entry_utilities.rb', line 23

def content
  @content.extend(Sanitize)
end

#parse_datetime(string) ⇒ Object



15
16
17
# File 'lib/feedzirra/feed_entry_utilities.rb', line 15

def parse_datetime(string)
  DateTime.parse(string).feed_utils_to_gm_time
end

#sanitize!Object



35
36
37
38
39
# File 'lib/feedzirra/feed_entry_utilities.rb', line 35

def sanitize!
  self.title.sanitize!
  self.author.sanitize!
  self.content.sanitize!
end

#titleObject



27
28
29
# File 'lib/feedzirra/feed_entry_utilities.rb', line 27

def title
  @title.extend(Sanitize)
end