COPY is only for local files. http://www.postgresql.org/docs/9.1/static/sql-copy.html
COPY moves data between PostgreSQL tables and standard file-system files.
You can however download the file via Ruby and then pass the location to your COPY command.