https://github.com/iced/rtransmission
Ruby Transmission Bindings
https://github.com/iced/rtransmission
Last synced: 8 months ago
JSON representation
Ruby Transmission Bindings
- Host: GitHub
- URL: https://github.com/iced/rtransmission
- Owner: iced
- License: bsd-3-clause
- Created: 2011-06-03T04:34:49.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2011-06-07T12:32:31.000Z (about 15 years ago)
- Last Synced: 2025-10-04T20:34:25.038Z (8 months ago)
- Language: Ruby
- Homepage:
- Size: 133 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
RTransmission
-------------
Ruby Transmission Bindings
Basic Usage
-----------
require 'rtransmission'
RTransmission::Client.session(:user => 'foo', :password => 'bar') do |session|
session.speed_limit_down_enabled = false
url = 'http://torrents.gentoo.org/torrents/livedvd-x86-amd64-32ul-11.1.torrent'
torrent = RTransmission::Torrent.add(session, :url => url)
torrent = RTransmission::Torrent.list(session)[0]
files = torrent.files
files.each { |f| puts f.name }
torrent.upload_limited = false
end
Copyright (c) 2011, Andrew Kirilenko
All rights reserved.
Use of this source code is governed by a BSD-style license that can be found in the COPYING file.