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 15 |
# File 'lib/nonnative/proxy_factory.rb', line 6 def create(service) proxy = case service.proxy.kind when 'fault_injection' FaultInjectionProxy else NoProxy end proxy.new(service) end |