Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix documentation

  • Loading branch information...
commit 22d0e821d42e8fedf2fbd7df2650ec44d985b1d6 1 parent 5300bec
Julien Sobrier authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  VERSION
  2. +4 −4 lib/google-safe-browsing-lookup.rb
2  VERSION
View
@@ -1 +1 @@
-0.1.1
+0.1.3
8 lib/google-safe-browsing-lookup.rb
View
@@ -29,7 +29,7 @@ class SafeBrowsingLookup
#
# +key+:: API key
# +debug+:: Set to true to print debug & error output to the standard output. false (disabled) by default.
- # +debug+:: Set to true to print error output to the standard output. false (disabled) by default.
+ # +error+:: Set to true to print error output to the standard output. false (disabled) by default.
def initialize(key='', debug=false, error=false)
@key = key || ''
@debug = debug || false
@@ -43,11 +43,11 @@ def initialize(key='', debug=false, error=false)
raise ArgumentError, "Missing API key" if (@key == '')
end
- # Lookup a list URLs against the Google Safe Browsing v2 lists.
+ # Lookup a list of URLs against the Google Safe Browsing v2 lists.
#
- # Returns a hash <url>: <Gooogle match>. The possible list of values for <Gooogle match> are: "ok" (no match), "malware", "phishing", "malware,phishing" (match both lists) and "error".
+ # Returns a hash <url>: <Gooogle match>. The possible values for <Gooogle match> are: "ok" (no match), "malware", "phishing", "malware,phishing" (match both lists) and "error".
#
- # +urls+:: List of URLs to lookup. The Lookup API allows only 10,000 URL checks a day. if you need more, find a Ruby implementation of the full Google Safe brosing v2 API. Each requests must contain 500 URLs at most. The lookup() method will split the list of URLS in blocks of 500 URLs if needed.
+ # +urls+:: List of URLs to lookup. The Lookup API allows only 10,000 URL checks a day. If you need more, find a Ruby implementation of the full Google Safe Browsing v2 API. Each requests must contain 500 URLs at most. The lookup() method will split the list of URLS in blocks of 500 URLs if needed.
def lookup(urls='')
if (urls.respond_to?('each') == false)
urls = Array.new(1, urls)
Please sign in to comment.
Something went wrong with that request. Please try again.