Class: Expressive::Webhook

Inherits:
Object
  • Object
show all
Defined in:
lib/webhook.rb

Instance Method Summary collapse

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

#executeObject



8
9
10
# File 'lib/webhook.rb', line 8

def execute
  self.send(@verb)
end