Class: Arproxy::ProxyChain

Inherits:
Object
  • Object
show all
Defined in:
lib/arproxy/proxy_chain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config, patch) ⇒ ProxyChain

Returns a new instance of ProxyChain.



8
9
10
11
12
# File 'lib/arproxy/proxy_chain.rb', line 8

def initialize(config, patch)
  @config = config
  @patch = patch
  setup
end

Instance Attribute Details

#headObject (readonly)

Returns the value of attribute head.



6
7
8
# File 'lib/arproxy/proxy_chain.rb', line 6

def head
  @head
end

#patchObject (readonly)

Returns the value of attribute patch.



6
7
8
# File 'lib/arproxy/proxy_chain.rb', line 6

def patch
  @patch
end

#tailObject (readonly)

Returns the value of attribute tail.



6
7
8
# File 'lib/arproxy/proxy_chain.rb', line 6

def tail
  @tail
end

Instance Method Details

#disable!Object



35
36
37
# File 'lib/arproxy/proxy_chain.rb', line 35

def disable!
  @patch.disable!
end

#enable!Object



31
32
33
# File 'lib/arproxy/proxy_chain.rb', line 31

def enable!
  @patch.enable!
end

#reenable!Object



25
26
27
28
29
# File 'lib/arproxy/proxy_chain.rb', line 25

def reenable!
  disable!
  setup
  enable!
end