Class: Svix::MessageAttemptAPI
- Inherits:
-
Object
- Object
- Svix::MessageAttemptAPI
- Defined in:
- lib/svix/message_attempt_api.rb
Instance Method Summary collapse
- #expunge_content(app_id, msg_id, attempt_id) ⇒ Object
- #get(app_id, msg_id, attempt_id) ⇒ Object
-
#initialize(api_client) ⇒ MessageAttemptAPI
constructor
A new instance of MessageAttemptAPI.
-
#list(app_id, msg_id, options = {}) ⇒ Object
DEPRECATED: Please use
list_by_msg
orlist_by_endpoint
instead. - #list_attempted_destinations(app_id, msg_id, options = {}) ⇒ Object
- #list_attempted_messages(app_id, endpoint_id, options = {}) ⇒ Object
- #list_attempts_for_endpoint(app_id, endpoint_id, msg_id, options = {}) ⇒ Object
- #list_by_endpoint(app_id, endpoint_id, options = {}) ⇒ Object
- #list_by_msg(app_id, msg_id, options = {}) ⇒ Object
- #resend(app_id, msg_id, endpoint_id, options = {}) ⇒ Object
Constructor Details
#initialize(api_client) ⇒ MessageAttemptAPI
Returns a new instance of MessageAttemptAPI.
5 6 7 |
# File 'lib/svix/message_attempt_api.rb', line 5 def initialize(api_client) @api = MessageAttemptApi.new(api_client) end |
Instance Method Details
#expunge_content(app_id, msg_id, attempt_id) ⇒ Object
43 44 45 |
# File 'lib/svix/message_attempt_api.rb', line 43 def expunge_content(app_id, msg_id, attempt_id) return @api.(app_id, msg_id, attempt_id) end |
#get(app_id, msg_id, attempt_id) ⇒ Object
23 24 25 |
# File 'lib/svix/message_attempt_api.rb', line 23 def get(app_id, msg_id, attempt_id) return @api.(app_id, msg_id, attempt_id) end |
#list(app_id, msg_id, options = {}) ⇒ Object
DEPRECATED: Please use list_by_msg
or list_by_endpoint
instead.
10 11 12 13 |
# File 'lib/svix/message_attempt_api.rb', line 10 def list(app_id, msg_id, = {}) warn "[DEPRECATION] `list` is deprecated. Please use `list_by_msg` or `list_by_endpoint` instead." return self.list_by_msg(app_id, msg_id, ) end |
#list_attempted_destinations(app_id, msg_id, options = {}) ⇒ Object
35 36 37 |
# File 'lib/svix/message_attempt_api.rb', line 35 def list_attempted_destinations(app_id, msg_id, = {}) return @api.(app_id, msg_id, ) end |
#list_attempted_messages(app_id, endpoint_id, options = {}) ⇒ Object
31 32 33 |
# File 'lib/svix/message_attempt_api.rb', line 31 def (app_id, endpoint_id, = {}) return @api.(app_id, endpoint_id, ) end |
#list_attempts_for_endpoint(app_id, endpoint_id, msg_id, options = {}) ⇒ Object
39 40 41 |
# File 'lib/svix/message_attempt_api.rb', line 39 def list_attempts_for_endpoint(app_id, endpoint_id, msg_id, = {}) return @api.(app_id, msg_id, endpoint_id, ) end |
#list_by_endpoint(app_id, endpoint_id, options = {}) ⇒ Object
19 20 21 |
# File 'lib/svix/message_attempt_api.rb', line 19 def list_by_endpoint(app_id, endpoint_id, = {}) return @api.(app_id, endpoint_id, ) end |
#list_by_msg(app_id, msg_id, options = {}) ⇒ Object
15 16 17 |
# File 'lib/svix/message_attempt_api.rb', line 15 def list_by_msg(app_id, msg_id, = {}) return @api.(app_id, msg_id, ) end |
#resend(app_id, msg_id, endpoint_id, options = {}) ⇒ Object
27 28 29 |
# File 'lib/svix/message_attempt_api.rb', line 27 def resend(app_id, msg_id, endpoint_id, = {}) return @api.(app_id, msg_id, endpoint_id, ) end |