[+] finalized adapter design pattern in rails application post