class QuartzTorrent::PieceManager::Result

The result of an asynchronous operation preformed by the PieceManager.

Attributes

data[RW]

Any data returned in the result

error[RW]

The error message if the operation was not successful

requestId[RW]

The ID of the request that this result is for. This is the same as the id returned when making the request.

Public Class Methods

new(requestId, success, data, error = nil) click to toggle source
# File lib/quartz_torrent/filemanager.rb, line 261
def initialize(requestId, success, data, error = nil)
  @success = success
  @error = error
  @data = data
  @requestId = requestId
end

Public Instance Methods

successful?() click to toggle source

Returns true if the operation was succesful

# File lib/quartz_torrent/filemanager.rb, line 279
def successful?
  @success
end