class QuartzTorrent::TrackerResponse

Represents the response from a tracker request

Attributes

error[R]

The error message if this was not successful

interval[RW]

Refresh interval in seconds

peers[R]

The list of peers from the response if the request was a success.

Public Class Methods

new(success, error, peers) click to toggle source
# File lib/quartz_torrent/trackerclient.rb, line 87
def initialize(success, error, peers)
  @success = success
  @error = error
  @peers = peers
  @interval = nil
end

Public Instance Methods

successful?() click to toggle source

Returns true if the Tracker response was a success

# File lib/quartz_torrent/trackerclient.rb, line 104
def successful?
  @success
end