Class: EasyLabs::Resources::RevenueRecoveryAutomations
- Inherits:
-
Base
- Object
- Base
- EasyLabs::Resources::RevenueRecoveryAutomations
show all
- Defined in:
- lib/easylabs/resources/revenue_recovery_automations.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#create(**body) ⇒ Object
12
13
14
|
# File 'lib/easylabs/resources/revenue_recovery_automations.rb', line 12
def create(**body)
request(:post, "/revenue-recovery-automations", body: body)
end
|
#delete(id) ⇒ Object
20
21
22
|
# File 'lib/easylabs/resources/revenue_recovery_automations.rb', line 20
def delete(id)
request(:delete, "/revenue-recovery-automations/#{id}")
end
|
#list ⇒ Object
8
9
10
|
# File 'lib/easylabs/resources/revenue_recovery_automations.rb', line 8
def list
request(:get, "/revenue-recovery-automations")
end
|
#runs(id) ⇒ Object
GET /revenue-recovery-automations/:id/runs
25
26
27
|
# File 'lib/easylabs/resources/revenue_recovery_automations.rb', line 25
def runs(id)
request(:get, "/revenue-recovery-automations/#{id}/runs")
end
|
#update(id, **body) ⇒ Object
16
17
18
|
# File 'lib/easylabs/resources/revenue_recovery_automations.rb', line 16
def update(id, **body)
request(:patch, "/revenue-recovery-automations/#{id}", body: body)
end
|