Sha256: 077849d339e0feb69922094e916b617f761c76fe9a678a6226b6beecd82cb003

Contents?: true

Size: 608 Bytes

Versions: 9

Compression:

Stored size: 608 Bytes

Contents

class Syncano
  module Resources
    module Notifications
      # Notification resource about destroying data object - represents notification with type "delete"
      class Destroy < Syncano::Resources::Notifications::Base

        # Constructor for Syncano::Notifications::Create object
        # @param [Syncano::Clients::Base] client
        # @param [Hash] attributes
        def initialize(client, attributes)
          super(client, attributes)

          if attributes.is_a?(::Syncano::Packets::Base)
            self[:target] = attributes.target
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
syncano-3.1.4 lib/syncano/resources/notifications/destroy.rb
syncano-3.1.3 lib/syncano/resources/notifications/destroy.rb
syncano-3.1.2 lib/syncano/resources/notifications/destroy.rb
syncano-3.1.1 lib/syncano/resources/notifications/destroy.rb
syncano-3.1.1.beta5 lib/syncano/resources/notifications/destroy.rb
syncano-3.1.1.beta4 lib/syncano/resources/notifications/destroy.rb
syncano-3.1.1.beta3 lib/syncano/resources/notifications/destroy.rb
syncano-3.1.1.beta2 lib/syncano/resources/notifications/destroy.rb
syncano-3.1.1.beta lib/syncano/resources/notifications/destroy.rb