Class: ZAPv2::PnH

Inherits:
Object
  • Object
show all
Defined in:
lib/zap/v2apis/pnh.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ PnH

Returns a new instance of PnH.



5
6
7
# File 'lib/zap/v2apis/pnh.rb', line 5

def initialize(client)
  @client = client
end

Instance Method Details

#fx_pnh_xpiObject



25
26
27
# File 'lib/zap/v2apis/pnh.rb', line 25

def fx_pnh_xpi
  @client.get('/OTHER/core/other/fx_pnh.xpi/')
end

#manifestObject



29
30
31
# File 'lib/zap/v2apis/pnh.rb', line 29

def manifest
  @client.get('/OTHER/core/other/manifest/')
end

#monitor(message) ⇒ Object



9
10
11
# File 'lib/zap/v2apis/pnh.rb', line 9

def monitor(message)
  @client.get("/JSON/pnh/action/monitor/?message=#{message}")
end

#oracleObject



13
14
15
# File 'lib/zap/v2apis/pnh.rb', line 13

def oracle
  @client.get('/JSON/pnh/view/oracle/')
end

#pnhObject



33
34
35
# File 'lib/zap/v2apis/pnh.rb', line 33

def pnh
  @client.get('/OTHER/core/other/pnh/')
end

#serviceObject



37
38
39
# File 'lib/zap/v2apis/pnh.rb', line 37

def service
  @client.get('/OTHER/core/other/service/')
end

#start_monitoring(url) ⇒ Object



17
18
19
# File 'lib/zap/v2apis/pnh.rb', line 17

def start_monitoring(url)
  @client.get("/JSON/pnh/action/startMonitoring/?url=#{url}")
end

#stop_monitoring(id) ⇒ Object



21
22
23
# File 'lib/zap/v2apis/pnh.rb', line 21

def stop_monitoring(id)
  @client.get("/JSON/pnh/action/stopMonitoring/?id=#{id}")
end