Class: Svix::BackgroundTasksAPI
- Inherits:
-
Object
- Object
- Svix::BackgroundTasksAPI
- Defined in:
- lib/svix/background_tasks_api.rb
Instance Method Summary collapse
- #get(task_id, options = {}) ⇒ Object
-
#initialize(api_client) ⇒ BackgroundTasksAPI
constructor
A new instance of BackgroundTasksAPI.
- #list(options = {}) ⇒ Object
Constructor Details
#initialize(api_client) ⇒ BackgroundTasksAPI
Returns a new instance of BackgroundTasksAPI.
5 6 7 |
# File 'lib/svix/background_tasks_api.rb', line 5 def initialize(api_client) @api = BackgroundTasksApi.new(api_client) end |
Instance Method Details
#get(task_id, options = {}) ⇒ Object
13 14 15 |
# File 'lib/svix/background_tasks_api.rb', line 13 def get(task_id, = {}) return @api.get_background_task(task_id, ) end |
#list(options = {}) ⇒ Object
9 10 11 |
# File 'lib/svix/background_tasks_api.rb', line 9 def list( = {}) return @api.list_background_tasks() end |