Class: EasyLabs::Resources::ComplianceForms

Inherits:
Base
  • Object
show all
Defined in:
lib/easylabs/resources/compliance_forms.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from EasyLabs::Resources::Base

Instance Method Details

#listObject



8
9
10
# File 'lib/easylabs/resources/compliance_forms.rb', line 8

def list
  request(:get, "/compliance-forms")
end

#retrieve(id) ⇒ Object



12
13
14
# File 'lib/easylabs/resources/compliance_forms.rb', line 12

def retrieve(id)
  request(:get, "/compliance-forms/#{id}")
end

#sign(id, name:, title:) ⇒ Object

PUT /compliance-forms/:id/sign { name, title }



17
18
19
# File 'lib/easylabs/resources/compliance_forms.rb', line 17

def sign(id, name:, title:)
  request(:put, "/compliance-forms/#{id}/sign", body: { name: name, title: title })
end