GmanClient
Ruby client for the gman-services Grossman API.
Installation
Add this line to your application's Gemfile:
gem 'gman_client', git: 'git@github.com:westernmilling/gman_client.git'
And then execute:
$ bundle
Usage
How to use:
client = Gman::Client.new(
url: "gman services url",
client_id: "client id",
client_secret: "client secret"
)
client.drivers
client.driver_commission_histories
client.driver_commission_histories_by_paid_date(DATE.new)
Running the tests
export GMAN_SERVICES_URL=<Gman Services URL>
export GMAN_SERVICES_CLIENT_ID=<Client ID>
export GMAN_SERVICES_CLIENT_SECRET=<Client Secret>
bundle exec rspec
Contributing
- Fork it ( https://github.com/westernmilling/gman_client/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