Module: UTorrent

Defined in:
lib/u_torrent.rb,
lib/u_torrent/base.rb,
lib/u_torrent/file.rb,
lib/u_torrent/http.rb,
lib/u_torrent/torrent.rb,
lib/u_torrent/version.rb,
lib/u_torrent/configuration.rb

Defined Under Namespace

Modules: Base, Http Classes: Configuration, File, Torrent

Constant Summary collapse

VERSION =
'0.0.4.2'.freeze

Class Method Summary collapse

Class Method Details

.base_uriObject



24
25
26
# File 'lib/u_torrent.rb', line 24

def base_uri
  URI.parse("#{@configuration.protocol}://#{@configuration.url}:#{@configuration.port}/gui/")
end

.configurationObject



20
21
22
# File 'lib/u_torrent.rb', line 20

def configuration
  @configuration
end

.configuration=(configuration) ⇒ Object



16
17
18
# File 'lib/u_torrent.rb', line 16

def configuration=(configuration)
  @configuration = configuration
end

.logObject



28
29
30
# File 'lib/u_torrent.rb', line 28

def log
  @configuration.logger
end