Class: Svix::IntegrationAPI
- Inherits:
-
Object
- Object
- Svix::IntegrationAPI
- Defined in:
- lib/svix/integration_api.rb
Instance Method Summary collapse
- #create(app_id, integ_in, options = {}) ⇒ Object
- #delete(app_id, integ_id) ⇒ Object
- #get(app_id, integ_id) ⇒ Object
- #get_key(app_id, integ_id) ⇒ Object
-
#initialize(api_client) ⇒ IntegrationAPI
constructor
A new instance of IntegrationAPI.
- #list(app_id, options = {}) ⇒ Object
- #rotate_key(app_id, integ_id, options = {}) ⇒ Object
- #update(app_id, integ_id, integ_update) ⇒ Object
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, = {}) return @api.v1_integration_create(app_id, integ_in, ) 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, = {}) return @api.v1_integration_list(app_id, ) 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, = {}) return @api.v1_integration_rotate_key(app_id, integ_id, ) 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 |