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

Version Path
hubspot-api-client-9.0.0 sample-apps/trello-integration-app/app/lib/services/trello/webhooks/update.rb
hubspot-api-client-8.0.1 sample-apps/trello-integration-app/app/lib/services/trello/webhooks/update.rb
hubspot-api-client-8.0.0 sample-apps/trello-integration-app/app/lib/services/trello/webhooks/update.rb
hubspot-api-client-7.3.0 sample-apps/trello-integration-app/app/lib/services/trello/webhooks/update.rb
hubspot-api-client-7.2.0 sample-apps/trello-integration-app/app/lib/services/trello/webhooks/update.rb
hubspot-api-client-7.1.1 sample-apps/trello-integration-app/app/lib/services/trello/webhooks/update.rb
hubspot-api-client-7.1.0 sample-apps/trello-integration-app/app/lib/services/trello/webhooks/update.rb