Sha256: 17ae044af1c26340c38bbd055412ecfa753fe0a0f097e84971f62227f5e050e2
Contents?: true
Size: 585 Bytes
Versions: 1
Compression:
Stored size: 585 Bytes
Contents
# frozen_string_literal: true module Lokalise module Resources class Webhook < Base supports :update, :destroy 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-lokalise-api-2.10.0 | lib/ruby-lokalise-api/resources/webhook.rb |