Sha256: c1c494d8aa1db1c6a918a8ffa1f7756822ec10a27295ca78d7b58689a01ca44c

Contents?: true

Size: 314 Bytes

Versions: 15

Compression:

Stored size: 314 Bytes

Contents

module DCell
  # Responses to calls
  class Response
    attr_reader :request_id, :value

    def initialize(request_id, value)
      @request_id, @value = request_id, value
    end
  end

  # Request successful
  class SuccessResponse < Response; end

  # Request failed
  class ErrorResponse < Response; end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
dcell-0.16.1 lib/dcell/responses.rb
stn-dcell-0.16.0 lib/dcell/responses.rb
dcell-0.16.0 lib/dcell/responses.rb
dcell-0.16.0.pre lib/dcell/responses.rb
dcell-0.15.0 lib/dcell/responses.rb
dcell-0.15.0.pre lib/dcell/responses.rb
dcell-0.14.0 lib/dcell/responses.rb
dcell-0.13.0 lib/dcell/responses.rb
dcell-0.13.0.pre lib/dcell/responses.rb
dcell-0.12.0.pre lib/dcell/responses.rb
dcell-0.10.0 lib/dcell/responses.rb
dcell-0.9.0 lib/dcell/responses.rb
dcell-0.8.0 lib/dcell/responses.rb
dcell-0.7.1 lib/dcell/responses.rb
dcell-0.0.1 lib/dcell/responses.rb