Sha256: 35ed682b0e6b42cc7a986f556d746b04e0049ca33d7600334d6fdffad26c41db

Contents?: true

Size: 676 Bytes

Versions: 8

Compression:

Stored size: 676 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.v1_event_type_list(options)
    end

    def create(event_type_in, options = {})
      return @api.v1_event_type_create(event_type_in, options)
    end

    def get(event_type_name)
      return @api.v1_event_type_get(event_type_name)
    end

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
svix-1.5.2 lib/svix/event_type_api.rb
svix-1.5.1 lib/svix/event_type_api.rb
svix-1.5.0 lib/svix/event_type_api.rb
svix-1.4.12 lib/svix/event_type_api.rb
svix-0.85.1 lib/svix/event_type_api.rb
svix-0.85.0 lib/svix/event_type_api.rb
svix-0.84.1 lib/svix/event_type_api.rb
svix-0.84.0 lib/svix/event_type_api.rb