Ruby binding for the API