Sha256: ea9faca232fcf4c871be2ccb830c577e0c877e1451678e4c26609a7ec818a4ca
Contents?: true
Size: 648 Bytes
Versions: 7
Compression:
Stored size: 648 Bytes
Contents
# frozen_string_literal: true module RubyLokaliseApi module Resources class Webhook < Base ID_KEY = 'webhook_id' supports :update, :destroy, [:reload_data, '', :find] def regenerate_secret self.class.regenerate_secret @client, "#{@path}/secret/regenerate" end class << self def regenerate_secret(client, path, *_args) patch(path, client)['content'] end def endpoint(project_id, webhook_id = nil, *actions) path_from projects: project_id, webhooks: [webhook_id, *actions] end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems