Sha256: 27f4d24be7e0715e124683b720b3dc7c1c4d61aa85af6f559ab593f18f06f775

Contents?: true

Size: 528 Bytes

Versions: 4

Compression:

Stored size: 528 Bytes

Contents

# frozen_string_literal: true

module BrazeRuby
  module REST
    class SendMessages < Base
      attr_reader :messages, :external_user_ids

      def initialize(api_key, braze_url, options, messages: [], external_user_ids: [])
        @messages = messages
        @external_user_ids = external_user_ids
        super api_key, braze_url, options
      end

      def perform
        http.post "/messages/send", {
          messages: messages,
          external_user_ids: external_user_ids
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
braze_ruby-0.8.0 lib/braze_ruby/rest/send_messages.rb
braze_ruby-0.7.0 lib/braze_ruby/rest/send_messages.rb
braze_ruby-0.6.0 lib/braze_ruby/rest/send_messages.rb
braze_ruby-0.5.0 lib/braze_ruby/rest/send_messages.rb