Class: PactBroker::Contracts::Service::TriggeredWebhooksCreatedListener
- Inherits:
-
Object
- Object
- PactBroker::Contracts::Service::TriggeredWebhooksCreatedListener
- Defined in:
- lib/pact_broker/contracts/service.rb
Instance Attribute Summary collapse
-
#detected_events ⇒ Object
readonly
Returns the value of attribute detected_events.
Instance Method Summary collapse
-
#initialize ⇒ TriggeredWebhooksCreatedListener
constructor
A new instance of TriggeredWebhooksCreatedListener.
- #triggered_webhooks_created_for_event(params) ⇒ Object
Constructor Details
#initialize ⇒ TriggeredWebhooksCreatedListener
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_events ⇒ Object (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 |