class Attio::Webhook
def resource_path
def resource_path raise InvalidRequestError, "Cannot generate path without an ID" unless persisted? webhook_id = Util::IdExtractor.extract_for_resource(id, :webhook) "#{self.class.resource_path}/#{webhook_id}" end