module GoogleSafeBrowsing
Constants
- VERSION
Attributes
logger[RW]
Public Class Methods
config()
click to toggle source
Returns of initializes the Module configuration
# File lib/google_safe_browsing.rb, line 57 def config @@config ||= Config.new end
configure() { |config| ... }
click to toggle source
Allows for setting config values via a block
# File lib/google_safe_browsing.rb, line 62 def configure yield config end
friendly_list_name(list)
click to toggle source
Converts the official Google list name into the name to return
@param (String) list the ‘official’ list name @return (String) the friendly list name
# File lib/google_safe_browsing.rb, line 75 def friendly_list_name(list) case list when 'goog-malware-shavar' 'malware' when 'googpub-phish-shavar' 'phishing' else nil end end
kick_off()
click to toggle source
Adds the Rescheduler
job to Resque
# File lib/google_safe_browsing.rb, line 67 def kick_off Resque.enqueue(Rescheduler) end