class Attio::Note

def resource_path

def resource_path
  raise InvalidRequestError, "Cannot generate path without an ID" unless persisted?
  note_id = id.is_a?(Hash) ? (id[:note_id] || id["note_id"]) : id
  "#{self.class.resource_path}/#{note_id}"
end