Sha256: f694635974de36ceb0fbd07cc05d5766297e337fb9e913d8b8e6ab90442845cf
Contents?: true
Size: 473 Bytes
Versions: 5
Compression:
Stored size: 473 Bytes
Contents
module FwtPushNotificationServer module Notifier class Base def begin_transaction(message, payload = nil) @device_tokens = [] @message = message @payload = payload 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, @payload) end def notify_once(message, device_tokens, payload = nil) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems