Sha256: 92485293174d914c592f5f308eab5a41e305dc5fe19ddc3bb78c579ace185aac
Contents?: true
Size: 410 Bytes
Versions: 6
Compression:
Stored size: 410 Bytes
Contents
module FwtPushNotificationServer module Notifier class Base def begin_transaction(message) @device_tokens = [] @message = message end def add_device_token(device_token) @device_tokens << device_token if device_token.is_valid end def commit_transaction notify_once(@message, @device_tokens.uniq) end def notify_once(message, device_tokens) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems