Sha256: c59d106186623736318bec1a2f03146e249c03312871be01b484f86cc229015d
Contents?: true
Size: 420 Bytes
Versions: 7
Compression:
Stored size: 420 Bytes
Contents
module Services module Trello module Webhooks class Update def initialize(webhook_id:, callback_url:) @webhook_id = webhook_id @callback_url = callback_url end def call webhook = ::Trello::Webhook.find(@webhook_id) webhook.update_fields(callback_url: @callback_url, active: true) webhook.save end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems