Class: FlexOps::Resources::ScanForms

Inherits:
Object
  • Object
show all
Defined in:
lib/flexops/resources/scan_forms.rb

Instance Method Summary collapse

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

#listObject



21
22
23
# File 'lib/flexops/resources/scan_forms.rb', line 21

def list
  @http.get("#{ws_path}/scan-forms")
end