Class: PactBroker::Webhooks::WebhookEvent
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- PactBroker::Webhooks::WebhookEvent
- Defined in:
- lib/pact_broker/webhooks/webhook_event.rb
Constant Summary collapse
- CONTRACT_PUBLISHED =
'contract_published'
- CONTRACT_CONTENT_CHANGED =
'contract_content_changed'
- VERIFICATION_PUBLISHED =
'provider_verification_published'
- VERIFICATION_SUCCEEDED =
'provider_verification_succeeded'
- VERIFICATION_FAILED =
'provider_verification_failed'
- DEFAULT_EVENT_NAME =
CONTRACT_CONTENT_CHANGED
- EVENT_NAMES =
[CONTRACT_PUBLISHED, CONTRACT_CONTENT_CHANGED, VERIFICATION_PUBLISHED, VERIFICATION_SUCCEEDED, VERIFICATION_FAILED]
Instance Method Summary collapse
- #contract_content_changed? ⇒ Boolean
- #contract_published? ⇒ Boolean
- #provider_verification_failed? ⇒ Boolean
- #provider_verification_published? ⇒ Boolean
- #provider_verification_succeeded? ⇒ Boolean
Instance Method Details
#contract_content_changed? ⇒ Boolean
25 26 27 |
# File 'lib/pact_broker/webhooks/webhook_event.rb', line 25 def contract_content_changed? name == CONTRACT_CONTENT_CHANGED end |
#contract_published? ⇒ Boolean
21 22 23 |
# File 'lib/pact_broker/webhooks/webhook_event.rb', line 21 def contract_published? name == CONTRACT_PUBLISHED end |
#provider_verification_failed? ⇒ Boolean
37 38 39 |
# File 'lib/pact_broker/webhooks/webhook_event.rb', line 37 def provider_verification_failed? name == VERIFICATION_FAILED end |
#provider_verification_published? ⇒ Boolean
29 30 31 |
# File 'lib/pact_broker/webhooks/webhook_event.rb', line 29 def provider_verification_published? name == VERIFICATION_PUBLISHED end |
#provider_verification_succeeded? ⇒ Boolean
33 34 35 |
# File 'lib/pact_broker/webhooks/webhook_event.rb', line 33 def provider_verification_succeeded? name == VERIFICATION_SUCCEEDED end |