class GoogleSafeBrowsing::Config
Handles the configuration values for the module
Attributes
api_key[RW]
app_ver[RW]
client[RW]
client_key[RW]
current_lists[RW]
host[RW]
mac_required[RW]
p_ver[RW]
rekey_host[RW]
wrapped_key[RW]
Public Class Methods
new()
click to toggle source
# File lib/google_safe_browsing.rb, line 34 def initialize @client = 'api' @app_ver = VERSION @p_ver = '2.2' @host = 'http://safebrowsing.clients.google.com/safebrowsing' @rekey_host = 'https://sb-ssl.google.com/safebrowsing' @current_lists = ['googpub-phish-shavar', 'goog-malware-shavar'] @mac_required = true end
Public Instance Methods
have_keys?()
click to toggle source
# File lib/google_safe_browsing.rb, line 44 def have_keys? @mac_required && @client_key.present? && @wrapped_key.present? end