Class: Sysdig::EmailNotification

Inherits:
UserNotification show all
Defined in:
lib/sysdig/email_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/email_notification.rb', line 7

def save
  notification = service.update_user_notifications("email" => {
    "enabled"    => self.enabled,
    "recipients" => self.receipents,
  }).body.fetch("userNotification")

  merge_attributes(notification.fetch("email"))
end