Class: ZAPv2::PnH
- Inherits:
-
Object
- Object
- ZAPv2::PnH
- Defined in:
- lib/zap/v2apis/pnh.rb
Instance Method Summary collapse
- #fx_pnh_xpi ⇒ Object
-
#initialize(client) ⇒ PnH
constructor
A new instance of PnH.
- #manifest ⇒ Object
- #monitor(message) ⇒ Object
- #oracle ⇒ Object
- #pnh ⇒ Object
- #service ⇒ Object
- #start_monitoring(url) ⇒ Object
- #stop_monitoring(id) ⇒ Object
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_xpi ⇒ Object
25 26 27 |
# File 'lib/zap/v2apis/pnh.rb', line 25 def fx_pnh_xpi @client.get('/OTHER/core/other/fx_pnh.xpi/') end |
#manifest ⇒ Object
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() @client.get("/JSON/pnh/action/monitor/?message=#{}") end |
#oracle ⇒ Object
13 14 15 |
# File 'lib/zap/v2apis/pnh.rb', line 13 def oracle @client.get('/JSON/pnh/view/oracle/') end |
#pnh ⇒ Object
33 34 35 |
# File 'lib/zap/v2apis/pnh.rb', line 33 def pnh @client.get('/OTHER/core/other/pnh/') end |
#service ⇒ Object
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 |