ContextHubVault
Ruby client for the ContextHUB vault
Installation
Add this line to your application's Gemfile:
gem 'context_hub_vault'
And then execute:
$ bundle
Or install it yourself as:
$ gem install context_hub_vault
Usage
client = ContextHubVault::Client.new(host: 'http://localhost:3000', app_id: '1', auth_token: ENV['AUTH_TOKEN'])
c.create('music', name: 'Miles Davis', style: 'jazz')
c.create('music', name: 'Monk', style: 'jazz')
jazz_musicians = c.search(style: 'jazz')
Contributing
- Fork it ( http://github.com//context_hub_vault/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request