Class: FreshchatWhatsapp::Actions::CheckMessageStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/freshchat_whatsapp/actions/check_message_status.rb

Constant Summary collapse

PATH =
'/v2/outbound-messages'

Instance Method Summary collapse

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

#callObject



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