Class: Expressive::Webhook
- Inherits:
-
Object
- Object
- Expressive::Webhook
- Defined in:
- lib/webhook.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(verb, url, params, headers) ⇒ Webhook
constructor
A new instance of Webhook.
Constructor Details
#initialize(verb, url, params, headers) ⇒ Webhook
Returns a new instance of Webhook.
4 5 6 |
# File 'lib/webhook.rb', line 4 def initialize(verb, url, params, headers) @verb, @url, @params, @headers = verb, url, params, headers end |
Instance Method Details
#execute ⇒ Object
8 9 10 |
# File 'lib/webhook.rb', line 8 def execute self.send(@verb) end |