Sha256: 08b2ca8e92013b3690acbb82ada664eb1c8b9e055ed6992b16950ede2d42e9c0

Contents?: true

Size: 333 Bytes

Versions: 7

Compression:

Stored size: 333 Bytes

Contents

module Celluloid
  # Responses to calls
  class Response
    attr_reader :call, :value
    
    def initialize(call, value)
      @call, @value = call, value
    end
  end
  
  # Call completed successfully
  class SuccessResponse < Response; end
  
  # Call was aborted due to caller error
  class ErrorResponse < Response; end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
celluloid-0.5.0 lib/celluloid/responses.rb
celluloid-0.2.2 lib/celluloid/responses.rb
celluloid-0.2.1 lib/celluloid/responses.rb
celluloid-0.2.0 lib/celluloid/responses.rb
celluloid-0.1.0 lib/celluloid/responses.rb
celluloid-0.0.3 lib/celluloid/responses.rb
celluloid-0.0.1 lib/celluloid/responses.rb