Not too long ago, I began my first solid attempt at learning Ruby and decided that my first project would be to combine data from the Envato API with RMagick to create a collage of thumbnails from some of the more popular images on GraphicRiver*. I figured it would be fun to take the time to walk you through some of the code I used as well as share my thoughts on my first major Ruby experience.
I’m going to assume that you already have a development environment set up that allows you to run Ruby from the command-line and have successfully installed RMagick. If you need instructions on how to do this, you can visit the Downloads page of the Ruby website and the RMagick website. I’m also going to assume that you have a firm grasp of the Ruby-language syntax. Don’t worry, I’ll offer clarification on any parts of the code I considered to be unorthodox. At the end of the blog post, I’ll be posting links to the complete code including the API wrapper I wrote, documentation, unit tests, and the code samples written directly in this blog post.