Class: Sysdig::SnsNotification
- Inherits:
-
UserNotification
- Object
- Model
- UserNotification
- Sysdig::SnsNotification
- Defined in:
- lib/sysdig/sns_notification.rb
Instance Method Summary collapse
Methods inherited from UserNotification
inherited, #initialize, type, types
Methods inherited from Model
Constructor Details
This class inherits a constructor from Sysdig::UserNotification
Instance Method Details
#save ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/sysdig/sns_notification.rb', line 7 def save notification = service.update_user_notifications(self.identity => { "enabled" => self.enabled, "topics" => self.topics, }).body.fetch("userNotification") merge_attributes(notification.fetch(self.identity)) end |