Class: Travis::Notifications::Webhook
- Inherits:
-
Object
- Object
- Travis::Notifications::Webhook
- Defined in:
- lib/travis/notifications/webhook.rb,
lib/travis/notifications/webhook/payload.rb
Defined Under Namespace
Classes: Payload
Constant Summary collapse
- EVENTS =
'build:finished'
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.payload_for(build) ⇒ Object
11 12 13 |
# File 'lib/travis/notifications/webhook.rb', line 11 def payload_for(build) Payload.new(build).to_hash end |
Instance Method Details
#notify(event, build, *args) ⇒ Object
23 24 25 |
# File 'lib/travis/notifications/webhook.rb', line 23 def notify(event, build, *args) send_webhook_notifications(build.webhooks, build) if build.send_webhook_notifications? end |