First go at writing my own api using Ruby