Refactor Ruby API (#7)
* Refactoring befor removing non-primitive API.