[ruby] Używanie api

Mam takie elementarne pytanie, mianowicie mam takie api:

[code]upload
POST with “Content-Type: multipart/form-data”.
There are 3 required parameters:

* method - upload
* api_key - string representing the API key
* file - transmit the image[/code]

Jak wywołać taki request, oraz jak załadować w parametr file dany plik (File.open czy Kernel.open)?
Z góry dzięki za pomoc!

http://stackoverflow.com/questions/184178/ruby-how-to-post-a-file-via-http-as-multipart-form-data może coś w tym stylu?