Class: UseParagon::Workflow
- Inherits:
-
Base
- Object
- Base
- UseParagon::Workflow
show all
- Defined in:
- lib/use_paragon/workflow.rb
Overview
Instance Attribute Summary
Attributes inherited from Base
#token, #user_id
Instance Method Summary
collapse
Methods inherited from Base
#generate_token, #initialize
Instance Method Details
#disable(workflow_id) ⇒ Object
19
20
21
|
# File 'lib/use_paragon/workflow.rb', line 19
def disable(workflow_id)
connection.delete(path("sdk/workflows/#{workflow_id}"))
end
|
#event(event_name, payload = {}, headers: {}) ⇒ Object
14
15
16
17
|
# File 'lib/use_paragon/workflow.rb', line 14
def event(event_name, payload = {}, headers: {})
self. =
connection.post(path("sdk/events/trigger"), event_payload(event_name, payload))
end
|
#request(workflow_id, payload, headers: {}) ⇒ Object
8
9
10
11
12
|
# File 'lib/use_paragon/workflow.rb', line 8
def request(workflow_id, payload, headers: {})
self. =
connection.post(path("sdk/triggers/#{workflow_id}"), payload)
end
|