Class: Sysdig::EmailNotification
- Inherits:
-
UserNotification
- Object
- Model
- UserNotification
- Sysdig::EmailNotification
- Defined in:
- lib/sysdig/email_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/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 |