A simple gem to wrap the Codelocks NetCode API, for generating key codes to operate their physical locks.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install codelocks
Configure your API credentials, either by setting the following two environment variables:
Or by setting them directly in Ruby:
Codelocks.api_key = "blargh" Codelocks.pairing_id = "argh"
API documentation with information on methods is available on RubyDoc.info.
- Fork it ( https://github.com/[my-github-username]/codelocks/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 a new Pull Request