Class: Arproxy::ProxyChain
- Inherits:
-
Object
- Object
- Arproxy::ProxyChain
- Defined in:
- lib/arproxy/proxy_chain.rb
Instance Attribute Summary collapse
-
#head ⇒ Object
readonly
Returns the value of attribute head.
-
#patch ⇒ Object
readonly
Returns the value of attribute patch.
-
#tail ⇒ Object
readonly
Returns the value of attribute tail.
Instance Method Summary collapse
- #disable! ⇒ Object
- #enable! ⇒ Object
-
#initialize(config, patch) ⇒ ProxyChain
constructor
A new instance of ProxyChain.
- #reenable! ⇒ Object
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
#head ⇒ Object (readonly)
Returns the value of attribute head.
6 7 8 |
# File 'lib/arproxy/proxy_chain.rb', line 6 def head @head end |
#patch ⇒ Object (readonly)
Returns the value of attribute patch.
6 7 8 |
# File 'lib/arproxy/proxy_chain.rb', line 6 def patch @patch end |
#tail ⇒ Object (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 |