Class: FIRE::Notification
- Inherits:
-
Object
- Object
- FIRE::Notification
- Defined in:
- lib/pushmeup/fire/notification.rb
Instance Attribute Summary collapse
-
#consolidationKey ⇒ Object
Returns the value of attribute consolidationKey.
-
#data ⇒ Object
Returns the value of attribute data.
-
#device_token ⇒ Object
Returns the value of attribute device_token.
-
#expiresAfter ⇒ Object
Returns the value of attribute expiresAfter.
Instance Method Summary collapse
- #==(that) ⇒ Object
-
#initialize(token, data, options = {}) ⇒ Notification
constructor
A new instance of Notification.
Constructor Details
#initialize(token, data, options = {}) ⇒ Notification
Returns a new instance of Notification.
5 6 7 8 9 10 11 |
# File 'lib/pushmeup/fire/notification.rb', line 5 def initialize(token, data, = {}) self.device_token = token self.data = data @consolidationKey = [:consolidationKey] @expiresAfter = [:expiresAfter] end |
Instance Attribute Details
#consolidationKey ⇒ Object
Returns the value of attribute consolidationKey.
3 4 5 |
# File 'lib/pushmeup/fire/notification.rb', line 3 def consolidationKey @consolidationKey end |
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/pushmeup/fire/notification.rb', line 3 def data @data end |
#device_token ⇒ Object
Returns the value of attribute device_token.
3 4 5 |
# File 'lib/pushmeup/fire/notification.rb', line 3 def device_token @device_token end |
#expiresAfter ⇒ Object
Returns the value of attribute expiresAfter.
3 4 5 |
# File 'lib/pushmeup/fire/notification.rb', line 3 def expiresAfter @expiresAfter end |
Instance Method Details
#==(that) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/pushmeup/fire/notification.rb', line 38 def ==(that) device_token == that.device_token && data == that.data && consolidationKey == that.consolidationKey && expiresAfter == that.expiresAfter end |