Sha256: c6f3408cf2868f11e4aaff5a645da0d8a81bc9032434c1c0cbc8bf2568a1afa3

Contents?: true

Size: 410 Bytes

Versions: 6

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

module FreshchatWhatsapp
  module Actions
    class CheckMessageStatus
      PATH = '/v2/outbound-messages'

      def initialize(client, request_id)
        @client = client
        @request_id = request_id
      end

      def call
        client.get_request "#{PATH}?request_id=#{request_id}"
      end

      private

      attr_reader :client, :request_id
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
freshchat_whatsapp-0.1.5 lib/freshchat_whatsapp/actions/check_message_status.rb
freshchat_whatsapp-0.1.4 lib/freshchat_whatsapp/actions/check_message_status.rb
freshchat_whatsapp-0.1.3 lib/freshchat_whatsapp/actions/check_message_status.rb
freshchat_whatsapp-0.1.2 lib/freshchat_whatsapp/actions/check_message_status.rb
freshchat_whatsapp-0.1.1 lib/freshchat_whatsapp/actions/check_message_status.rb
freshchat_whatsapp-0.1.0 lib/freshchat_whatsapp/actions/check_message_status.rb