You are here

Sample Source Code: Wrapping Your API In A Custom Ruby Gem

This walkthrough demonstrates how to create a Ruby Gem from scratch to interface with any API. The author is Ben Lewis writing for Engine Yard's blog. Referencing an imaginary web-accessible API called "bens benzes," the tutorial uses bundler to piece together the gem step by step. Users can clone the resulting gem from a GitHub project accessible from this page.