Class: Superfeedr::Status
Instance Method Summary collapse
-
#digest? ⇒ Boolean
status : if sets to true; it indicates that the notification is a digest.
-
#entries_count_since_last_maintenance ⇒ Object
entries_count_since_last_maintenance (provided only upon notification) : The number of new entries in the feed since we last ran the maintenance script.
-
#feed ⇒ Object
status : contains the URL of the feed.
-
#http ⇒ Object
http : the content of that tag is a more explicit log message for your information.
-
#http_code ⇒ Object
http : last HTTP status code, please see Status Code Definitions.
-
#last_fetch ⇒ Object
last_fetch : the last time at which we fetched the feed.
-
#last_maintenance_at ⇒ Object
last_maintenance_at : Each feed inside Node has a maintenance cycle that we use to detect stale feeds, or related feeds.
-
#last_parse ⇒ Object
last_parse : the last time at which we parsed the feed.
-
#next_fetch ⇒ Object
next_fetch : the feed will be fetched at most before this time.
-
#period ⇒ Object
period : the polling frequency in seconds for this feed.
-
#title ⇒ Object
title (provided only upon notification) : the feed title.
Methods inherited from Node
Constructor Details
This class inherits a constructor from Superfeedr::Node
Instance Method Details
#digest? ⇒ Boolean
status : if sets to true; it indicates that the notification is a digest.
115 116 117 |
# File 'lib/superfeedr/superfeedr.rb', line 115 def digest? !!content_from("@digest") end |
#entries_count_since_last_maintenance ⇒ Object
entries_count_since_last_maintenance (provided only upon notification) : The number of new entries in the feed since we last ran the maintenance script. This is a very good indicator of the verboseness of a feed. You may want to remove feeds that are too verbose.
149 150 151 |
# File 'lib/superfeedr/superfeedr.rb', line 149 def entries_count_since_last_maintenance integer_from("sf:entries_count_since_last_maintenance") end |
#feed ⇒ Object
status : contains the URL of the feed
109 110 111 |
# File 'lib/superfeedr/superfeedr.rb', line 109 def feed content_from("@feed") end |
#http ⇒ Object
http : the content of that tag is a more explicit log message for your information.
104 105 106 |
# File 'lib/superfeedr/superfeedr.rb', line 104 def http content_from("sf:http") end |
#http_code ⇒ Object
http : last HTTP status code, please see Status Code Definitions.
99 100 101 |
# File 'lib/superfeedr/superfeedr.rb', line 99 def http_code content_from("sf:http/@code") end |
#last_fetch ⇒ Object
last_fetch : the last time at which we fetched the feed.
130 131 132 |
# File 'lib/superfeedr/superfeedr.rb', line 130 def last_fetch datetime_from("sf:last_fetch") end |
#last_maintenance_at ⇒ Object
last_maintenance_at : Each feed inside Node has a maintenance cycle that we use to detect stale feeds, or related feeds. We normally run maintenance at most every 24hour for each feed.
144 145 146 |
# File 'lib/superfeedr/superfeedr.rb', line 144 def last_maintenance_at datetime_from("sf:last_maintenance_at") end |
#last_parse ⇒ Object
last_parse : the last time at which we parsed the feed. It happens that we fetch a feed and do not parse it as its content hasn’t been modified.
135 136 137 |
# File 'lib/superfeedr/superfeedr.rb', line 135 def last_parse datetime_from("sf:last_parse") end |
#next_fetch ⇒ Object
next_fetch : the feed will be fetched at most before this time.
125 126 127 |
# File 'lib/superfeedr/superfeedr.rb', line 125 def next_fetch datetime_from("sf:next_fetch") end |
#period ⇒ Object
period : the polling frequency in seconds for this feed.
120 121 122 |
# File 'lib/superfeedr/superfeedr.rb', line 120 def period integer_from("sf:period") end |
#title ⇒ Object
title (provided only upon notification) : the feed title.
94 95 96 |
# File 'lib/superfeedr/superfeedr.rb', line 94 def title content_from("sf:title") end |