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)


112
113
114
# File 'lib/superfeedr/superfeedr.rb', line 112

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.



146
147
148
# File 'lib/superfeedr/superfeedr.rb', line 146

def entries_count_since_last_maintenance
  integer_from("sf:entries_count_since_last_maintenance")
end

#feedObject

status : contains the URL of the feed



106
107
108
# File 'lib/superfeedr/superfeedr.rb', line 106

def feed
  content_from("@feed")
end

#httpObject

http : the content of that tag is a more explicit log message for your information.



101
102
103
# File 'lib/superfeedr/superfeedr.rb', line 101

def http
  content_from("sf:http")
end

#http_codeObject

http : last HTTP status code, please see Status Code Definitions.



96
97
98
# File 'lib/superfeedr/superfeedr.rb', line 96

def http_code
  content_from("sf:http/@code")
end

#last_fetchObject

last_fetch : the last time at which we fetched the feed.



127
128
129
# File 'lib/superfeedr/superfeedr.rb', line 127

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.



141
142
143
# File 'lib/superfeedr/superfeedr.rb', line 141

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.



132
133
134
# File 'lib/superfeedr/superfeedr.rb', line 132

def last_parse
  datetime_from("sf:last_parse")
end

#next_fetchObject

next_fetch : the feed will be fetched at most before this time.



122
123
124
# File 'lib/superfeedr/superfeedr.rb', line 122

def next_fetch
  datetime_from("sf:next_fetch")
end

#periodObject

period : the polling frequency in seconds for this feed.



117
118
119
# File 'lib/superfeedr/superfeedr.rb', line 117

def period
  integer_from("sf:period")
end

#titleObject

title (provided only upon notification) : the feed title.



91
92
93
# File 'lib/superfeedr/superfeedr.rb', line 91

def title
  content_from("sf:title")
end