Class: ZAPv2::Client
- Inherits:
-
Object
- Object
- ZAPv2::Client
- Defined in:
- lib/zap/v2apis/client.rb
Instance Method Summary collapse
-
#initialize(client) ⇒ Client
constructor
A new instance of Client.
- #report_event(event_json) ⇒ Object
- #report_object(object_json) ⇒ Object
- #report_zest_script(script_json) ⇒ Object
- #report_zest_statement(statement_json) ⇒ Object
Constructor Details
#initialize(client) ⇒ Client
Returns a new instance of Client.
5 6 7 |
# File 'lib/zap/v2apis/client.rb', line 5 def initialize(client) @client = client end |
Instance Method Details
#report_event(event_json) ⇒ Object
9 10 11 |
# File 'lib/zap/v2apis/client.rb', line 9 def report_event(event_json) @client.get('/json/client/action/reportEvent/', event_json) end |
#report_object(object_json) ⇒ Object
13 14 15 |
# File 'lib/zap/v2apis/client.rb', line 13 def report_object(object_json) @client.get('/json/client/action/reportObject/', object_json) end |
#report_zest_script(script_json) ⇒ Object
17 18 19 |
# File 'lib/zap/v2apis/client.rb', line 17 def report_zest_script(script_json) @client.get('/json/client/action/reportZestScript/', script_json) end |
#report_zest_statement(statement_json) ⇒ Object
21 22 23 |
# File 'lib/zap/v2apis/client.rb', line 21 def report_zest_statement(statement_json) @client.get('/json/client/action/reportZestStatement/', statement_json) end |