Ucb::Hcm
Ucb::Hcm is a lightweight ruby wrapper around UC Berkeley's Human Capital Management API. https://developer.berkeley.edu/apidocs/employee
Version 1.0 of this gem supports the v2 API, documented in the link above. UCB now has v3 of the API - we'll skip version 2.0 of the gem and make version 3.0 support the v3 API.
Installation
Add this line to your application's Gemfile:
gem 'ucb-hcm'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ucb-hcm
Usage
Ucb::Hcm.configure do |hcm|
hcm.app_id = "APP_ID"
hcm.app_key = "APP_KEY"
hcm.endpoint = "https://endpoint/"
end
client = Ucb::Hcm::Client.new
client.get("/employees/12345")
client.employees.find(12345) # Coming soon!
Contributing
- Fork it ( https://github.com/[my-github-username]/ucb-hcm/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