Class: PactBroker::Contracts::Service::TriggeredWebhooksCreatedListener

Inherits:
Object
  • Object
show all
Defined in:
lib/pact_broker/contracts/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTriggeredWebhooksCreatedListener

Returns a new instance of TriggeredWebhooksCreatedListener.



24
25
26
# File 'lib/pact_broker/contracts/service.rb', line 24

def initialize
  @detected_events = []
end

Instance Attribute Details

#detected_eventsObject (readonly)

Returns the value of attribute detected_events.



22
23
24
# File 'lib/pact_broker/contracts/service.rb', line 22

def detected_events
  @detected_events
end

Instance Method Details

#triggered_webhooks_created_for_event(params) ⇒ Object



28
29
30
# File 'lib/pact_broker/contracts/service.rb', line 28

def triggered_webhooks_created_for_event(params)
  detected_events << params.fetch(:event)
end