Class: Syncano::Resources::Notifications::Destroy

Inherits:
Base
  • Object
show all
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

#attributes, #destroyed, #id

Instance Method Summary collapse

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

Parameters:



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