Class: Transmission::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/transmission/config.rb

Class Method Summary collapse

Class Method Details

.getObject



9
10
11
# File 'lib/transmission/config.rb', line 9

def get
  @@config
end

.get_connectorObject



13
14
15
# File 'lib/transmission/config.rb', line 13

def get_connector
  @@connector
end

.set(options = {}) ⇒ Object



4
5
6
7
# File 'lib/transmission/config.rb', line 4

def set(options = {})
  @@config = options
  @@connector = Transmission::RPC.new @@config
end