Class: GCM::Notification
- Inherits:
-
Object
- Object
- GCM::Notification
- Defined in:
- lib/pushmeup/gcm/notification.rb
Instance Attribute Summary collapse
-
#collapse_key ⇒ Object
Returns the value of attribute collapse_key.
-
#data ⇒ Object
Returns the value of attribute data.
-
#delay_while_idle ⇒ Object
Returns the value of attribute delay_while_idle.
-
#device_tokens ⇒ Object
Returns the value of attribute device_tokens.
-
#identity ⇒ Object
Returns the value of attribute identity.
-
#time_to_live ⇒ Object
Returns the value of attribute time_to_live.
Instance Method Summary collapse
-
#initialize(tokens, data, options = {}) ⇒ Notification
constructor
A new instance of Notification.
Constructor Details
#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 |
Instance Attribute Details
#collapse_key ⇒ Object
Returns the value of attribute collapse_key.
3 4 5 |
# File 'lib/pushmeup/gcm/notification.rb', line 3 def collapse_key @collapse_key end |
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/pushmeup/gcm/notification.rb', line 3 def data @data end |
#delay_while_idle ⇒ Object
Returns the value of attribute delay_while_idle.
3 4 5 |
# File 'lib/pushmeup/gcm/notification.rb', line 3 def delay_while_idle @delay_while_idle end |
#device_tokens ⇒ Object
Returns the value of attribute device_tokens.
3 4 5 |
# File 'lib/pushmeup/gcm/notification.rb', line 3 def device_tokens @device_tokens end |
#identity ⇒ Object
Returns the value of attribute identity.
3 4 5 |
# File 'lib/pushmeup/gcm/notification.rb', line 3 def identity @identity end |
#time_to_live ⇒ Object
Returns the value of attribute time_to_live.
3 4 5 |
# File 'lib/pushmeup/gcm/notification.rb', line 3 def time_to_live @time_to_live end |