class OwaspZap::Policy
Public Class Methods
new(params = {})
click to toggle source
# File lib/owasp_zap/policy.rb, line 3 def initialize(params = {}) @base = params[:base] end
Public Instance Methods
all(format = "JSON")
click to toggle source
# File lib/owasp_zap/policy.rb, line 7 def all(format = "JSON") # http://127.0.0.1:8080/JSON/ascan/view/policies/?zapapiformat=JSON url = Addressable::URI.parse "#{@base}/#{format}/ascan/view/policies/" url.query_values = {:zapapiformat=>format} RestClient::get url.normalize.to_str end