Skip to content

culturejam/cube-ruby-gem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

A Ruby client gem for Cube.

Installation

Add this line to your application's Gemfile:

gem 'cube', git: 'https://github.com/culturejam/cube-ruby-gem.git'

And then execute:

$ bundle install

Usage

You can run the gem in standalone using pry:

git clone https://github.com/culturejam/cube-ruby-gem.git
cd cube-ruby-gem
bundle install
bundle exec pry

Sample usage:

require 'cube'

# Configure
Cube.url = "https://cube.promojam.com"
Cube.username = "cube"
Cube.password = "password"

# Get a client
cube = Cube.client

# Get metrics.
cube.client.get_metric('sum(pageviews)', start: "2014-04-01", step: "6e4", limit: 10)

License

Copyright 2014 CultureJam, Inc.

Licensed under the Apache License, Version 2.0.

About

Ruby client for the Cube timeseries server.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages