Sha256: 5330c87504491c2eb5d5c7eb987ede5f37be32f6b1cbdb6310d33c49809831ac

Contents?: true

Size: 749 Bytes

Versions: 4

Compression:

Stored size: 749 Bytes

Contents

# frozen_string_literal: true

module Svix
    class EventTypeAPI
        def initialize(api_client)
            @api = EventTypeApi.new(api_client)
        end

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

        def create(event_type_in)
            return @api.create_event_type_api_v1_event_type_post(event_type_in)
        end

        def update(event_type_name, event_type_update)
            return @api.update_event_type_api_v1_event_type_event_type_name_put(event_type_name, event_type_update)
        end

        def delete(event_type_name)
            return @api.delete_event_type_api_v1_event_type_event_type_name_delete(event_type_name)
        end
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
svix-0.37.0 lib/svix/event_type_api.rb
svix-0.36.0 lib/svix/event_type_api.rb
svix-0.34.1 lib/svix/event_type_api.rb
svix-0.32.0 lib/svix/event_type_api.rb