Class: Svix::BackgroundTasksAPI

Inherits:
Object
  • Object
show all
Defined in:
lib/svix/background_tasks_api.rb

Instance Method Summary collapse

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, options = {})
  return @api.get_background_task(task_id, options)
end

#list(options = {}) ⇒ Object



9
10
11
# File 'lib/svix/background_tasks_api.rb', line 9

def list(options = {})
  return @api.list_background_tasks(options)
end