Class: EasyLabs::Resources::ComplianceForms
- Defined in:
- lib/easylabs/resources/compliance_forms.rb
Instance Method Summary collapse
- #list ⇒ Object
- #retrieve(id) ⇒ Object
-
#sign(id, name:, title:) ⇒ Object
PUT /compliance-forms/:id/sign { name, title }.
Methods inherited from Base
Constructor Details
This class inherits a constructor from EasyLabs::Resources::Base
Instance Method Details
#list ⇒ Object
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 |