SmartHR
Ruby bindings of SmartHR API
Installation
gem 'smarthr'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install smarthr
Usage
client = SmartHR::Client.new(tenant_id: "XXX", access_token: "XXX")
# for Sandbox
client = SmartHR::Client.new(tenant_id: "XXX", access_token: "XXX", sandbox: true)
Then call instance methods.
e.g. find crew.
client.find_crew(id: '906494aa-11bf-4324-91ea-6a07aad172d0')
#=> #<Hashie::Mash id="906494aa-11bf-4324-91ea-6a07aad172d0">
Contributing
- Fork it
- 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
License
The gem is available as open source under the terms of the MIT License.