lib/transmission/rpc.rb in transmission-rpc-ruby-0.3.1 vs lib/transmission/rpc.rb in transmission-rpc-ruby-0.4.0

- old
+ new

@@ -58,9 +58,15 @@ def add_torrent(arguments) arguments = Transmission::Arguments::TorrentAdd.new(arguments) @connector.post method: 'torrent-add', arguments: arguments.to_arguments end + def torrent_set_location(ids, arguments) + arguments[:ids] = ids + arguments = Transmission::Arguments::LocationSet.new(arguments) + @connector.post method: 'torrent-set-location', arguments: arguments.to_arguments + end + def remove_torrent(ids, delete_local_data = false) @connector.post method: 'torrent-remove', arguments: {ids: ids, 'delete-local-data' => delete_local_data} end def start_torrent(ids) \ No newline at end of file