Class: Syncano::Resources::Notifications::Destroy
- Defined in:
- lib/syncano/resources/notifications/destroy.rb
Overview
Notification resource about destroying data object - represents notification with type “delete”
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(client, attributes) ⇒ Destroy
constructor
Constructor for Syncano::Notifications::Create object.
Methods inherited from Base
all, create, instantize_notification
Methods inherited from Base
#[], #[]=, all, #batch, batch_create, #batch_destroy, #batch_save, #batch_update, count, create, #destroy, #destroyed?, find, #new_record?, #reload!, #save, #saved?, #update
Constructor Details
#initialize(client, attributes) ⇒ Destroy
Constructor for Syncano::Notifications::Create object
10 11 12 13 14 15 16 |
# File 'lib/syncano/resources/notifications/destroy.rb', line 10 def initialize(client, attributes) super(client, attributes) if attributes.is_a?(::Syncano::Packets::Base) self[:target] = attributes.target end end |