Module: PactBroker::Api::Resources::EventMethods

Included in:
Pact, Verifications
Defined in:
lib/pact_broker/api/resources/event_methods.rb

Instance Method Summary collapse

Instance Method Details

#subscribe(listener) ⇒ Object



7
8
9
10
11
# File 'lib/pact_broker/api/resources/event_methods.rb', line 7

def subscribe(listener)
  PactBroker::Events.subscribe(listener) do
    yield
  end
end