Class: Syncano::Resources::Notifications::Create
- Defined in:
- lib/syncano/resources/notifications/create.rb
Overview
Notification resource about creating data object - represents notification with type “new”
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(client, attributes) ⇒ Create
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) ⇒ Create
Constructor for Syncano::Notifications::Create object
10 11 12 13 14 15 16 |
# File 'lib/syncano/resources/notifications/create.rb', line 10 def initialize(client, attributes) super(client, attributes) if attributes.is_a?(::Syncano::Packets::Base) self[:channel] = attributes.channel end end |