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
-
#published ⇒ Object
(also: #last_modified)
Returns the value of attribute published.
Instance Method Summary collapse
- #author ⇒ Object
- #content ⇒ Object
- #parse_datetime(string) ⇒ Object
- #sanitize! ⇒ Object
- #title ⇒ Object
Instance Attribute Details
#published ⇒ Object 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
#author ⇒ Object
31 32 33 |
# File 'lib/feedzirra/feed_entry_utilities.rb', line 31 def @author.extend(Sanitize) end |
#content ⇒ Object
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..sanitize! self.content.sanitize! end |
#title ⇒ Object
27 28 29 |
# File 'lib/feedzirra/feed_entry_utilities.rb', line 27 def title @title.extend(Sanitize) end |