class Torrific::TorControl

Attributes

password[RW]

Public Class Methods

new(options) click to toggle source
Calls superclass method
# File lib/torrific.rb, line 8
def initialize(options)
  self.password = options.fetch(:password) { nil }
  super options
end

Public Instance Methods

change_ip() click to toggle source

changes the tor identity

# File lib/torrific.rb, line 14
def change_ip
  self.connect
  self.authenticate self.password
  send_command(:signal, 'NEWNYM')
  self.close
end