Class: Expressive::Webhook

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

Instance Method Summary collapse

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

#executeObject



44
45
46
# File 'lib/scope.rb', line 44

def execute
  self.send(@verb)
end