Codecube Ruby Client Library

A Ruby client library for the codecube.io API

Installation

Add this line to your application's Gemfile:

gem 'codecube'

And then execute:

$ bundle

Or install it yourself as:

$ gem install codecube

Usage

Initialize with your API key:

CodeCube.api_key = ENV.fetch('CODECUBE_API_KEY')

Run code:

response = CodeCube.run_sync(language: "ruby", code: "puts 'hello!'")
puts response.text_output
# => hello!