Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Libs(ruby): expose patch endpoints (#1264)
<!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Bug fixes and new features should include tests. --> ## Motivation <!-- Explain the context and why you're making that change. What is the problem you're trying to solve? If a new feature is being added, describe the intended use case that feature fulfills. --> I've noticed that the `patch` endpoints, which were introduced back in [v1.6.0](https://github.com/svix/svix-webhooks/releases/tag/v1.6.0), aren't currently exposed in the way they should be. This omission can lead to errors when users attempt to utilize these `patch` endpoints, particularly when building request bodies for endpoint resources. A case in point is the `Svix::EndpointPatch` error, which serves as an illustrative example of the underlying issue: ``` irb(main):001:0> Svix::EndpointPatch.new({}) (irb):1:in `<main>': uninitialized constant Svix::EndpointPatch (NameError) Svix::EndpointPatch.new({}) ^^^^^^^^^^^^^^^ Did you mean? Svix::EndpointUpdate Svix::EndpointOut Svix::EndpointAPI ``` ## Solution <!-- Summarize the solution and provide any necessary context needed to understand the code change. --> To address this issue, I propose to expose the `patch` endpoints within the `ruby/lib/svix.rb` file.
- Loading branch information