Class: Bcome::Ssh::ProxyChain
- Inherits:
-
Object
- Object
- Bcome::Ssh::ProxyChain
- Defined in:
- lib/objects/ssh/proxy_chain.rb
Instance Attribute Summary collapse
-
#hops ⇒ Object
readonly
Returns the value of attribute hops.
Instance Method Summary collapse
- #==(other_chain) ⇒ Object
- #eql?(other_chain) ⇒ Boolean
-
#initialize(wrangler) ⇒ ProxyChain
constructor
A new instance of ProxyChain.
Constructor Details
#initialize(wrangler) ⇒ ProxyChain
Returns a new instance of ProxyChain.
7 8 9 |
# File 'lib/objects/ssh/proxy_chain.rb', line 7 def initialize(wrangler) @hops = wrangler.hops end |
Instance Attribute Details
#hops ⇒ Object (readonly)
Returns the value of attribute hops.
5 6 7 |
# File 'lib/objects/ssh/proxy_chain.rb', line 5 def hops @hops end |
Instance Method Details
#==(other_chain) ⇒ Object
15 16 17 |
# File 'lib/objects/ssh/proxy_chain.rb', line 15 def ==(other_chain) eql?(other_chain) end |
#eql?(other_chain) ⇒ Boolean
11 12 13 |
# File 'lib/objects/ssh/proxy_chain.rb', line 11 def eql?(other_chain) hops == other_chain.hops end |