Class: Expressive::Webhook
- Inherits:
-
Object
- Object
- Expressive::Webhook
- Defined in:
- lib/scope.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(verb, url, params) ⇒ Webhook
constructor
A new instance of Webhook.
Constructor Details
#initialize(verb, url, params) ⇒ Webhook
Returns a new instance of Webhook.
40 41 42 |
# File 'lib/scope.rb', line 40 def initialize(verb, url, params) @verb, @url, @params = verb, url, params end |
Instance Method Details
#execute ⇒ Object
44 45 46 |
# File 'lib/scope.rb', line 44 def execute self.send(@verb) end |