module Delighted::Operations::Delete::ClassMethods

Public Instance Methods

delete(id_hash, client = Delighted.shared_client) click to toggle source
# File lib/delighted/operations/delete.rb, line 13
def delete(id_hash, client = Delighted.shared_client)
  id = identifier_string(id_hash)
  client.delete_json(path(id))
end
path(id = nil) click to toggle source
# File lib/delighted/operations/delete.rb, line 9
def path(id = nil)
  id ? "#{@path}/#{CGI.escape(id)}" : @path
end