This is from pg93, ex 4.1.27.
Let $\mathcal{A}$ be a locally small category, and let $A,A' \in \mathcal{A}$ with $\operatorname{Hom}(-,A) \cong \operatorname{Hom}(-,A')$. Prove directly that $A \cong A'$.
My thoughts:
Let $\eta$ denote the natural isomoprhism between the two functors. We have $$H(A,A) \xrightarrow{ \eta_A} H(A,A')$$ So $\eta_A(id_A): A \rightarrow A'$ is a candidate. Now I want to construct inverse. $$ H(A',A') \xrightarrow{\eta_{A'}} H(A',A)$$ Then the map $\eta^{-1}_{A'} (id_{A'}):A' \rightarrow A$. So I'd like to show that the composition is identity. By the naturality condition of $\eta$, from $H_A(A) \rightarrow H_{A'}(A')$ (and similarly on other direction) $$ \eta_A(id_A) \circ \eta^{-1}_{A'}(id_{A'}) = \eta_{A'}(\eta_{A'}^{-1}(id_{A'}))= id_{A'} $$ We deduce these two maps are inverses. Hence $A' \cong A$.
Is this correct? Or is there a neat way to see this?
You proof is correct and I do not believe that there are many alternatives.