Module: Layer::Operations::Delete::ClassMethods

Included in:
Block, Conversation, Webhook
Defined in:
lib/layer/operations/delete.rb

Instance Method Summary collapse

Instance Method Details

#delete(id, client = self.client) ⇒ Object

Deletes the resource with the given id

Parameters:

  • id (String)

    the resource's id

  • client (Layer::Client) (defaults to: self.client)

    the client to use to make this request

Raises:


11
12
13
14
# File 'lib/layer/operations/delete.rb', line 11

def delete(id, client = self.client)
  id = Layer::Client.normalize_id(id)
  client.delete("#{url}/#{id}")
end