def torrents(options = {})
      options = { 'fields' => options } if options.is_a? Array
      params = { 'fields' => Transmission::Torrent::ATTRIBUTES}.merge options
      @connection.request('torrent-get', params) do |resp|
        if resp == :connection_error
          yield :connection_error
        else
          torrs = resp['torrents'].map { |t| Torrent.new(t, @connection) }
          yield torrs
        end
      end
    end
def torrents(options = {})
      options = { 'fields' => options } if options.is_a? Array
      params = { 'fields' => Transmission::Torrent::ATTRIBUTES}.merge options
      @connection.request('torrent-get', params) do |resp|
        if resp == :connection_error
          yield :connection_error
        else
          torrs = resp['torrents'].map { |t| Torrent.new(t, @connection) }
          yield torrs
        end
      end
    end
TODO handler for resp['status'] != 'success'
 options = { 'fields' => ['id'], 'ids' => [1,4,6] }