Sha256: 4f76b3972f44658fcffe02e463b5893e78b32869f7fc93a2ae6d29218170f024

Contents?: true

Size: 588 Bytes

Versions: 28

Compression:

Stored size: 588 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.v1_message_list(app_id, options)
    end

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

    def get(app_id, msg_id, options = {})
      return @api.v1_message_get(app_id, msg_id, options)
    end

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

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
svix-1.21.0 lib/svix/message_api.rb
svix-1.20.0 lib/svix/message_api.rb
svix-1.19.0 lib/svix/message_api.rb
svix-1.18.0 lib/svix/message_api.rb
svix-1.17.0 lib/svix/message_api.rb
svix-1.16.0 lib/svix/message_api.rb
svix-1.15.0 lib/svix/message_api.rb
svix-1.14.0 lib/svix/message_api.rb