Method: GCM::Notification#initialize
- Defined in:
- lib/pushmeup/gcm/notification.rb
#initialize(tokens, data, options = {}) ⇒ Notification
Returns a new instance of Notification.
5 6 7 8 9 10 11 12 13 |
# File 'lib/pushmeup/gcm/notification.rb', line 5 def initialize(tokens, data, = {}) self.device_tokens = tokens self.data = data @collapse_key = [:collapse_key] @time_to_live = [:time_to_live] @delay_while_idle = [:delay_while_idle] @identity = [:identity] end |