Class: Layer::Resources::Webhook

Inherits:
Layer::Resource show all
Defined in:
lib/layer/resources/webhook.rb

Instance Attribute Summary

Attributes inherited from Layer::Resource

#attributes, #client

Instance Method Summary collapse

Methods inherited from Layer::Resource

class_name, create, #destroy, find, #initialize, #inspect, list, #method_missing, pluralized_name, #respond_to_missing?, #update, url, #uuid

Constructor Details

This class inherits a constructor from Layer::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Layer::Resource

Instance Method Details

#activateObject



4
5
6
# File 'lib/layer/resources/webhook.rb', line 4

def activate
  client.post("#{url}/activate")
end

#deactivateObject



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

def deactivate
  client.post("#{url}/deactivate")
end