Class: FreshchatWhatsapp::Actions::CheckMessageStatus
- Inherits:
-
Object
- Object
- FreshchatWhatsapp::Actions::CheckMessageStatus
- Defined in:
- lib/freshchat_whatsapp/actions/check_message_status.rb
Constant Summary collapse
- PATH =
'/v2/outbound-messages'
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(client, request_id) ⇒ CheckMessageStatus
constructor
A new instance of CheckMessageStatus.
Constructor Details
#initialize(client, request_id) ⇒ CheckMessageStatus
Returns a new instance of CheckMessageStatus.
8 9 10 11 |
# File 'lib/freshchat_whatsapp/actions/check_message_status.rb', line 8 def initialize(client, request_id) @client = client @request_id = request_id end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/freshchat_whatsapp/actions/check_message_status.rb', line 13 def call client.get_request "#{PATH}?request_id=#{request_id}" end |