Class: David::ResourceDiscoveryProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/david/resource_discovery_proxy.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ ResourceDiscoveryProxy

Returns a new instance of ResourceDiscoveryProxy.


5
6
7
# File 'lib/david/resource_discovery_proxy.rb', line 5

def initialize(app)
  ResourceDiscovery.supervise(as: :discovery, args: [app])
end

Instance Method Details

#call(env) ⇒ Object


9
10
11
# File 'lib/david/resource_discovery_proxy.rb', line 9

def call(env)
  Celluloid::Actor[:discovery].call(env)
end