Class: ZAPv2::Postman
- Inherits:
-
Object
- Object
- ZAPv2::Postman
- Defined in:
- lib/zap/v2apis/postman.rb
Instance Method Summary collapse
- #import_file(target, contextid) ⇒ Object
- #import_url(host_override, contextid) ⇒ Object
-
#initialize(client) ⇒ Postman
constructor
A new instance of Postman.
Constructor Details
#initialize(client) ⇒ Postman
Returns a new instance of Postman.
5 6 7 |
# File 'lib/zap/v2apis/postman.rb', line 5 def initialize(client) @client = client end |
Instance Method Details
#import_file(target, contextid) ⇒ Object
9 10 11 |
# File 'lib/zap/v2apis/postman.rb', line 9 def import_file(target, contextid) @client.get("/JSON/postman/action/importFile/?target=#{target}&contextId=#{contextid}") end |
#import_url(host_override, contextid) ⇒ Object
13 14 15 |
# File 'lib/zap/v2apis/postman.rb', line 13 def import_url(host_override, contextid) @client.get("/JSON/postman/action/importUrl/?hostOverride=#{host_override}&contextId=#{contextid}") end |