Class: Bcome::Ssh::ProxyChain

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hopsObject (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

Returns:

  • (Boolean)


11
12
13
# File 'lib/objects/ssh/proxy_chain.rb', line 11

def eql?(other_chain)
  hops == other_chain.hops
end