Class: ActsAsPushable::GCM::Notification
- Inherits:
-
Notification
- Object
- Notification
- ActsAsPushable::GCM::Notification
- Defined in:
- lib/acts_as_pushable/gcm/notification.rb
Instance Method Summary collapse
Methods inherited from Notification
Constructor Details
This class inherits a constructor from ActsAsPushable::Notification
Instance Method Details
#perform ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/acts_as_pushable/gcm/notification.rb', line 6 def perform response = client.send([device.token], ) if response[:not_registered_ids].include? device.token device.update_attribute 'invalidated_at', Time.current end response end |