Sha256: c4ae5d955f05a4de4c1b76bcdc207e755b8c40cff9df2b36da991e66bd8350af

Contents?: true

Size: 435 Bytes

Versions: 9

Compression:

Stored size: 435 Bytes

Contents

class Syncano
  module Packets
    # Class representing error packets used in communication with the Sync Server
    class Error < Syncano::Packets::Base
      attr_reader :error

      # Constructor for Syncano::Packets::Error object
      # @param [Hash] attributes
      def initialize(attributes)
        super(attributes)
        self.error = attributes[:error]
      end

      private

      attr_writer :error
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
syncano-3.1.4 lib/syncano/packets/error.rb
syncano-3.1.3 lib/syncano/packets/error.rb
syncano-3.1.2 lib/syncano/packets/error.rb
syncano-3.1.1 lib/syncano/packets/error.rb
syncano-3.1.1.beta5 lib/syncano/packets/error.rb
syncano-3.1.1.beta4 lib/syncano/packets/error.rb
syncano-3.1.1.beta3 lib/syncano/packets/error.rb
syncano-3.1.1.beta2 lib/syncano/packets/error.rb
syncano-3.1.1.beta lib/syncano/packets/error.rb