Code Monkey home page Code Monkey logo

gem-hscience's Introduction

HyperScience

A simple ruby wrapper for calls to HyperScience RESTful API.

Installation

Add this line to your application's Gemfile:

gem 'hyper_science'

And then execute:

$ bundle

Or install it yourself as:

$ gem install hyper_science

Usage

In your initializer

HyperScience.host = ENV['HYPERSCIENCE_HOST']
HyperScience.port = ENV['HYPERSCIENCE_PORT'].to_i
HyperScience.enabled = ENV['HYPERSCIENCE_ENABLED'].present? && ENV['HYPERSCIENCE_ENABLED'] == 'true'

Example:

> model = HyperScience.get_model('bookings', 'event')
 => #<HyperScience::Model:0x007f803903b7c0
>
> model.calculate(123)
 => "CANCELLATION"

Contributing

  1. Fork it ( http://github.com/Handybook/hyper_science/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

This project rocks and uses MIT-LICENSE.

gem-hscience's People

Contributors

jrivera-handy avatar mikemaring avatar

Watchers

David Paquet Pitts avatar Justin Martin avatar Tim Chambers avatar Bodie Leonard avatar Jeremy Fabre avatar Matthew Shepard avatar Leonid Shalimov avatar James Cloos avatar Marcin Popielarz avatar Jimmy Garita avatar dq avatar Roy Rivera avatar Kenneth Cohen avatar  avatar Michael Maring avatar  avatar  avatar N avatar Ricardo Quinones avatar Allan Monge Jiménez avatar Norm avatar Sameep Sheth avatar  avatar Rahul Jain avatar Eddy Fabery avatar  avatar  avatar Iryna Litvinova avatar  avatar Sean Pietz avatar Sofia avatar  avatar  avatar Justin Williams avatar Poki Chui avatar Marie-Maxime Tanguay avatar kenny cohen avatar Anton Vaneev avatar Chris Johnson avatar Marcin Tustin avatar Steven Diaz avatar  avatar Dean Silfen avatar Eric Abrahamsen avatar  avatar Alex Yankov avatar Michael Maring avatar Howard Cordray avatar  avatar Ivan avatar  avatar Leo Amigud avatar Scott Luptowski avatar Kevin Crimi avatar Ricardo Quiñones avatar Leon Shalimov avatar Isaul Vargas avatar  avatar Mayank avatar Asha Balasubramaniam avatar Hayley Anderson avatar  avatar Zhijiao Chen avatar Ondrej Dolejsi avatar Xi Wei avatar  avatar Quintin Roper avatar  avatar Timothy Stephens avatar  avatar Alex avatar  avatar Tim Mahoney avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Mark Shildkret avatar Zoe avatar Kulesh Shanmugasundaram avatar  avatar John Zhang avatar GC avatar  avatar  avatar John Stauffer avatar  avatar  avatar Mason Everett avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.