Sha256: 4f207c0d63d71e4313d99027a10502947ff690453e0e59e0c98f95d9f48f932d

Contents?: true

Size: 461 Bytes

Versions: 9

Compression:

Stored size: 461 Bytes

Contents

class Syncano
  # Represents response from Syncano API
  class Response
    attr_reader :status, :data, :errors

    # Constructor for Syncano::Response
    # @param [Boolean] status
    # @param [Hash] data
    # @param [Array] errors
    def initialize(status = false, data = nil, errors = [])
      super()

      self.status = status
      self.data   = data
      self.errors = errors
    end

    private

    attr_writer :status, :data, :errors
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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