Class: Superfeedr::Status

Inherits:
Node
  • Object
show all
Defined in:
lib/superfeedr/superfeedr.rb

Instance Method Summary collapse

Methods inherited from Node

#initialize

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.

Returns:

  • (Boolean)


115
116
117
# File 'lib/superfeedr/superfeedr.rb', line 115

def digest?
  !!content_from("@digest")
end

#entries_count_since_last_maintenanceObject

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

#feedObject

status : contains the URL of the feed



109
110
111
# File 'lib/superfeedr/superfeedr.rb', line 109

def feed
  content_from("@feed")
end

#httpObject

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_codeObject

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_fetchObject

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_atObject

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_parseObject

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_fetchObject

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

#periodObject

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

#titleObject

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