Class: Svix::MessageAPI
- Inherits:
-
Object
- Object
- Svix::MessageAPI
- Defined in:
- lib/svix/message_api.rb
Instance Method Summary collapse
- #create(app_id, message_in, options = {}) ⇒ Object
- #expunge_content(app_id, msg_id) ⇒ Object
- #get(app_id, msg_id, options = {}) ⇒ Object
-
#initialize(api_client) ⇒ MessageAPI
constructor
A new instance of MessageAPI.
- #list(app_id, options = {}) ⇒ Object
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, , = {}) return @api.(app_id, , ) 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.(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, = {}) return @api.(app_id, msg_id, ) end |
#list(app_id, options = {}) ⇒ Object
9 10 11 |
# File 'lib/svix/message_api.rb', line 9 def list(app_id, = {}) return @api.(app_id, ) end |