Class: Nonnative::ProxyFactory
- Inherits:
-
Object
- Object
- Nonnative::ProxyFactory
- Defined in:
- lib/nonnative/proxy_factory.rb
Class Method Summary collapse
Class Method Details
.create(service) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/nonnative/proxy_factory.rb', line 6 def create(service) case service.proxy.type when 'chaos' ChaosProxy.new(service) else # By default we want no proxy. NoProxy.new(service) end end |