Class: Nuntius::PushTransport

Inherits:
BaseTransport show all
Defined in:
app/transports/nuntius/push_transport.rb

Instance Method Summary collapse

Methods inherited from BaseTransport

class_from_name, #kind, #providers

Instance Method Details

#deliver(message) ⇒ Object

We split per email address, to allow easy resends



6
7
8
9
10
11
12
13
# File 'app/transports/nuntius/push_transport.rb', line 6

def deliver(message)
  message.request_id = SecureRandom.uuid
  message.to.split(",").each do |to|
    new_message = message.dup
    new_message.to = to
    super(new_message)
  end
end