Class: Svix::IntegrationAPI

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

Instance Method Summary collapse

Constructor Details

#initialize(api_client) ⇒ IntegrationAPI

Returns a new instance of IntegrationAPI.



5
6
7
# File 'lib/svix/integration_api.rb', line 5

def initialize(api_client)
  @api = IntegrationApi.new(api_client)
end

Instance Method Details

#create(app_id, integ_in, options = {}) ⇒ Object



13
14
15
# File 'lib/svix/integration_api.rb', line 13

def create(app_id, integ_in, options = {})
  return @api.v1_integration_create(app_id, integ_in, options)
end

#delete(app_id, integ_id) ⇒ Object



25
26
27
# File 'lib/svix/integration_api.rb', line 25

def delete(app_id, integ_id)
  return @api.v1_integration_delete(app_id, integ_id)
end

#get(app_id, integ_id) ⇒ Object



17
18
19
# File 'lib/svix/integration_api.rb', line 17

def get(app_id, integ_id)
  return @api.v1_integration_get(app_id, integ_id)
end

#get_key(app_id, integ_id) ⇒ Object



29
30
31
# File 'lib/svix/integration_api.rb', line 29

def get_key(app_id, integ_id)
  return @api.v1_integration_get_key(app_id, integ_id)
end

#list(app_id, options = {}) ⇒ Object



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

def list(app_id, options = {})
  return @api.v1_integration_list(app_id, options)
end

#rotate_key(app_id, integ_id, options = {}) ⇒ Object



33
34
35
# File 'lib/svix/integration_api.rb', line 33

def rotate_key(app_id, integ_id, options = {})
  return @api.v1_integration_rotate_key(app_id, integ_id, options)
end

#update(app_id, integ_id, integ_update) ⇒ Object



21
22
23
# File 'lib/svix/integration_api.rb', line 21

def update(app_id, integ_id, integ_update)
  return @api.v1_integration_update(app_id, integ_id, integ_update)
end