Sha256: 4601e594c3c5c5caab345b4f5750bc607f40bfe9ab3446f27099b245be865ecd

Contents?: true

Size: 684 Bytes

Versions: 11

Compression:

Stored size: 684 Bytes

Contents

# frozen_string_literal: true

module Svix
  class MessageAPI
    def initialize(api_client)
      @api = MessageApi.new(api_client)
    end

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

    def create(app_id, message_in, options = {})
      return @api.create_message_api_v1_app_app_id_msg_post(app_id, message_in, options)
    end

    def get(app_id, msg_id)
      return @api.get_message_api_v1_app_app_id_msg_msg_id_get(msg_id, app_id)
    end

    def expunge_content(app_id, msg_id)
      return @api.expunge_message_payload_api_v1_app_app_id_msg_msg_id_content_delete(msg_id, app_id)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
svix-0.83.1 lib/svix/message_api.rb
svix-0.83.0 lib/svix/message_api.rb
svix-0.82.1 lib/svix/message_api.rb
svix-0.82.0 lib/svix/message_api.rb
svix-0.81.0 lib/svix/message_api.rb
svix-0.80.0 lib/svix/message_api.rb
svix-0.79.0 lib/svix/message_api.rb
svix-0.78.0 lib/svix/message_api.rb
svix-0.77.0 lib/svix/message_api.rb
svix-0.76.1 lib/svix/message_api.rb
svix-0.76.0 lib/svix/message_api.rb