class Syncano::Resources::Notifications::Create
Notification resource about creating data object - represents notification with type “new”
Public Class Methods
new(client, attributes)
click to toggle source
Constructor for Syncano::Notifications::Create object @param [Syncano::Clients::Base] client @param [Hash] attributes
Calls superclass method
Syncano::Resources::Notifications::Base::new
# 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