NET::Sftp in ruby not allowing string interpolation

Unable to use string interpolation as the directory input inside sftp
start session. receiving no such file error but even the file exists.

how to pass userinput as a file name everytime to sftp ?