Class: Svix::MessageAPI

Inherits:
Object
  • Object
show all
Defined in:
lib/svix/message_api.rb

Instance Method Summary collapse

Constructor Details

#initialize(api_client) ⇒ MessageAPI

Returns a new instance of MessageAPI.



5
6
7
# File 'lib/svix/message_api.rb', line 5

def initialize(api_client)
  @api = MessageApi.new(api_client)
end

Instance Method Details

#create(app_id, message_in, options = {}) ⇒ Object



13
14
15
# File 'lib/svix/message_api.rb', line 13

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

#expunge_content(app_id, msg_id) ⇒ Object



21
22
23
# File 'lib/svix/message_api.rb', line 21

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

#get(app_id, msg_id, options = {}) ⇒ Object



17
18
19
# File 'lib/svix/message_api.rb', line 17

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

#list(app_id, options = {}) ⇒ Object



9
10
11
# File 'lib/svix/message_api.rb', line 9

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