class SwitchConnection::ProxyRepository
Public Class Methods
checkout(name)
click to toggle source
# File lib/switch_connection/proxy_repository.rb, line 10 def self.checkout(name) instance.checkout(name) end
find(name)
click to toggle source
# File lib/switch_connection/proxy_repository.rb, line 14 def self.find(name) instance.find(name) end
Public Instance Methods
checkout(name)
click to toggle source
# File lib/switch_connection/proxy_repository.rb, line 18 def checkout(name) proxies[name] ||= Proxy.new(name) end
find(name)
click to toggle source
# File lib/switch_connection/proxy_repository.rb, line 22 def find(name) proxies.fetch(name) end
proxies()
click to toggle source
# File lib/switch_connection/proxy_repository.rb, line 26 def proxies @proxies ||= {} end