Sha256: 4b5b02469ecdc9696fe8fe52a4f2efb2174d6675e282e86ef2c7f4d93fe0dbeb
Contents?: true
Size: 612 Bytes
Versions: 6
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true module Lokalise module Resources class Webhook < Base 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
6 entries across 6 versions & 1 rubygems