lib/owasp_zap.rb in owasp_zap-0.0.93 vs lib/owasp_zap.rb in owasp_zap-0.0.94

- old
+ new

@@ -10,10 +10,11 @@ require_relative "owasp_zap/spider" require_relative "owasp_zap/attack" require_relative "owasp_zap/alert" require_relative "owasp_zap/auth" require_relative "owasp_zap/scanner" +require_relative "owasp_zap/policy" module OwaspZap class ZapException < Exception;end class Zap @@ -50,9 +51,13 @@ response = RestClient::get "#{@base}" rescue Errno::ECONNREFUSED return false end response.code == 200 + end + + def policy + Zap::Policy.new(:base=>@base) end def alerts Zap::Alert.new(:base=>@base,:target=>@target) end