class UrlScan::Commands::Community

Public Instance Methods

dom(uuid) click to toggle source
# File lib/urlscan/commands/community.rb, line 34
def dom(uuid)
  with_error_handling do
    res = api.dom(uuid)
    puts res
  end
end
result(uuid) click to toggle source
# File lib/urlscan/commands/community.rb, line 16
def result(uuid)
  with_error_handling do
    res = api.result(uuid)
    puts JSON.pretty_generate(res)
  end
end
screenshot(uuid) click to toggle source
# File lib/urlscan/commands/community.rb, line 42
def screenshot(uuid)
  with_error_handling do
    res = api.screenshot(uuid)
    puts res
  end
end
submit(url) click to toggle source
# File lib/urlscan/commands/community.rb, line 8
def submit(url)
  with_error_handling do
    res = api.submit(url, options[:public])
    puts JSON.pretty_generate(res)
  end
end