class Syncano::Resources::Notifications::Update
Notification resource about updating data object - represents notification with type “change”
Public Class Methods
new(client, attributes)
click to toggle source
Constructor for Syncano::Notifications::Update object @param [Syncano::Clients::Base] client @param [Hash] attributes
Calls superclass method
Syncano::Resources::Notifications::Base::new
# File lib/syncano/resources/notifications/update.rb, line 9 def initialize(client, attributes) super(client, attributes) if attributes.is_a?(::Syncano::Packets::Base) self.attributes = { added: attributes.data[:added], updated: attributes.data[:updated], deleted: attributes.data[:deleted], target: attributes.target } end end