transmission-rails/transmission-rpc-ruby

View on GitHub
lib/transmission/config.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Transmission
  class Config
    class << self
      def set(options = {})
        @@config = options
        @@connector = Transmission::RPC.new @@config
      end

      def get
        @@config
      end

      def get_connector
        @@connector
      end
    end
  end
end