We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The more I use this, the more I think it shouldn't be actual classes that define hooks, rather more simple "rspec-esque" blocks of code. For example:
class SampleHooks < Pokey define_hook "Optional description" do |hook| hook.interval = 10 hook.endpoint = "http://blarg.com/api/endpoint" hook.http_method = :patch hook.data do |data| data.id = 1 data.something_else = "string" end end define_hook do |hook| hook.interval = 5 # etc end end
Then you could simplify define as many hooks as you wanted in any given file. I'll shoot for release in 0.3.0.
The text was updated successfully, but these errors were encountered:
This will break compatibility with ccallebs/pokey-sendgrid but should be easy enough to fix.
Sorry, something went wrong.
No branches or pull requests
The more I use this, the more I think it shouldn't be actual classes that define hooks, rather more simple "rspec-esque" blocks of code. For example:
Then you could simplify define as many hooks as you wanted in any given file. I'll shoot for release in 0.3.0.
The text was updated successfully, but these errors were encountered: