Module: Transmission
- Defined in:
- lib/transmission-rpc.rb,
lib/transmission-rpc/client.rb,
lib/transmission-rpc/torrent.rb,
lib/transmission-rpc/version.rb
Defined Under Namespace
Modules: RPC
Classes: Configuration
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
9
10
11
12
|
# File 'lib/transmission-rpc.rb', line 9
def self.configuration
@configuration = Transmission::Configuration.new if @configuration.nil?
@configuration
end
|
14
15
16
17
|
# File 'lib/transmission-rpc.rb', line 14
def self.configure
self.configuration ||= Configuration.new
yield(configuration)
end
|
.torrents ⇒ Object
Convenience method for getting all the torrents