Sha256: 9fc68eadab0116e92a6a973299b85ae5266245c47974c258fb90559b051b8c42
Contents?: true
Size: 365 Bytes
Versions: 2
Compression:
Stored size: 365 Bytes
Contents
class Sysdig::EmailNotification < Sysdig::UserNotification type :email attribute :recipients, type: :array def save notification = service.update_user_notifications("email" => { "enabled" => self.enabled, "recipients" => self.receipents, }).body.fetch("userNotification") merge_attributes(notification.fetch("email")) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sysdig-0.2.3 | lib/sysdig/email_notification.rb |
sysdig-0.2.0 | lib/sysdig/email_notification.rb |