Class: Sysdig::SnsNotification

Inherits:
UserNotification show all
Defined in:
lib/sysdig/sns_notification.rb

Instance Method Summary collapse

Methods inherited from UserNotification

inherited, #initialize, type, types

Methods inherited from Model

epoch_time

Constructor Details

This class inherits a constructor from Sysdig::UserNotification

Instance Method Details

#saveObject



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