Method: Html2rss::Item#guid

Defined in:
lib/html2rss/item.rb

#guidString

Returns SHA1 hashed GUID.

Returns:

  • (String)

    SHA1 hashed GUID.



106
107
108
109
110
# File 'lib/html2rss/item.rb', line 106

def guid
  content = config.guid_selector_names.flat_map { |method_name| public_send(method_name) }.join

  Digest::SHA1.hexdigest(content)
end