Class: FlexOps::Resources::ScanForms
- Inherits:
-
Object
- Object
- FlexOps::Resources::ScanForms
- Defined in:
- lib/flexops/resources/scan_forms.rb
Instance Method Summary collapse
- #create(request) ⇒ Object
- #get(scan_form_id) ⇒ Object
-
#initialize(http, ws_id_proc) ⇒ ScanForms
constructor
A new instance of ScanForms.
- #list ⇒ Object
Constructor Details
#initialize(http, ws_id_proc) ⇒ ScanForms
Returns a new instance of ScanForms.
12 13 14 15 |
# File 'lib/flexops/resources/scan_forms.rb', line 12 def initialize(http, ws_id_proc) @http = http @ws_id = ws_id_proc end |
Instance Method Details
#create(request) ⇒ Object
17 18 19 |
# File 'lib/flexops/resources/scan_forms.rb', line 17 def create(request) @http.post("#{ws_path}/scan-forms", body: request) end |
#get(scan_form_id) ⇒ Object
25 26 27 |
# File 'lib/flexops/resources/scan_forms.rb', line 25 def get(scan_form_id) @http.get("#{ws_path}/scan-forms/#{scan_form_id}") end |
#list ⇒ Object
21 22 23 |
# File 'lib/flexops/resources/scan_forms.rb', line 21 def list @http.get("#{ws_path}/scan-forms") end |