Class: Transmission::TorrentGet

Inherits:
BaseMethod show all
Defined in:
lib/transmissionr/torrent_get.rb

Constant Summary collapse

@@fields =
%w(
  activityDate
  addedDate
  bandwidthPriority
  comment
  corruptEver
  creator
  dateCreated
  desiredAvailable
  doneDate
  downloadDir
  downloadedEver
  downloadLimit
  downloadLimited
  error
  errorString
  eta
  etaIdle
  files
  fileStats
  hashString
  haveUnchecked
  haveValid
  honorsSessionLimits
  id
  isFinished
  isPrivate
  isStalled
  leftUntilDone
  magnetLink
  manualAnnounceTime
  maxConnectedPeers
  metadataPercentComplete
  name
  peer-limit
  peers
  peersConnected
  peersFrom
  peersGettingFromUs
  peersSendingToUs
  percentDone
  pieces
  pieceCount
  pieceSize
  priorities
  queuePosition
  rateDownload
  rateUpload
  recheckProgress
  secondsDownloading
  secondsSeeding
  seedIdleLimit
  seedIdleMode
  seedRatioLimit
  seedRatioMode
  sizeWhenDone
  startDate
  status
  trackers
  trackerStats
  totalSize
  torrentFile
  uploadedEver
  uploadLimit
  uploadLimited
  uploadRatio
  wanted
  webseeds
  webseedsSendingToUs
)

Instance Method Summary collapse

Methods inherited from BaseMethod

#request

Constructor Details

#initialize(client, fields = nil, ids = nil) ⇒ TorrentGet

Returns a new instance of TorrentGet.



3
4
5
6
7
8
9
10
# File 'lib/transmissionr/torrent_get.rb', line 3

def initialize( client, fields = nil, ids = nil )
  super(client)
  @method = 'torrent-get'
  @arguments = {}

  @arguments["fields"] = fields ? fields : @@fields
  @arguments["ids"] = ids if ids != nil
end