Class: Svix::EventTypeAPI
- Inherits:
-
Object
- Object
- Svix::EventTypeAPI
- Defined in:
- lib/svix/event_type_api.rb
Instance Method Summary collapse
- #create(event_type_in, options = {}) ⇒ Object
- #delete(event_type_name) ⇒ Object
- #get(event_type_name) ⇒ Object
- #import_openapi(event_type_import_open_api_in, options = {}) ⇒ Object
-
#initialize(api_client) ⇒ EventTypeAPI
constructor
A new instance of EventTypeAPI.
- #list(options = {}) ⇒ Object
- #patch(event_type_name, event_type_patch) ⇒ Object
- #update(event_type_name, event_type_update) ⇒ Object
Constructor Details
#initialize(api_client) ⇒ EventTypeAPI
Returns a new instance of EventTypeAPI.
5 6 7 |
# File 'lib/svix/event_type_api.rb', line 5 def initialize(api_client) @api = EventTypeApi.new(api_client) end |
Instance Method Details
#create(event_type_in, options = {}) ⇒ Object
13 14 15 |
# File 'lib/svix/event_type_api.rb', line 13 def create(event_type_in, = {}) return @api.v1_event_type_create(event_type_in, ) end |
#delete(event_type_name) ⇒ Object
29 30 31 |
# File 'lib/svix/event_type_api.rb', line 29 def delete(event_type_name) return @api.v1_event_type_delete(event_type_name) end |
#get(event_type_name) ⇒ Object
17 18 19 |
# File 'lib/svix/event_type_api.rb', line 17 def get(event_type_name) return @api.v1_event_type_get(event_type_name) end |
#import_openapi(event_type_import_open_api_in, options = {}) ⇒ Object
33 34 35 |
# File 'lib/svix/event_type_api.rb', line 33 def import_openapi(event_type_import_open_api_in, = {}) return @api.v1_event_type_import_openapi(event_type_import_open_api_in, ) end |
#list(options = {}) ⇒ Object
9 10 11 |
# File 'lib/svix/event_type_api.rb', line 9 def list( = {}) return @api.v1_event_type_list() end |
#patch(event_type_name, event_type_patch) ⇒ Object
25 26 27 |
# File 'lib/svix/event_type_api.rb', line 25 def patch(event_type_name, event_type_patch) return @api.v1_event_type_patch(event_type_name, event_type_patch) end |
#update(event_type_name, event_type_update) ⇒ Object
21 22 23 |
# File 'lib/svix/event_type_api.rb', line 21 def update(event_type_name, event_type_update) return @api.v1_event_type_update(event_type_name, event_type_update) end |