0.0
No commit activity in last 3 years
No release in over 3 years
Grossman API Client for accessing gman-services written in Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0
= 3.4.0
= 1.2.0
= 3.0.1
= 1.22.6

Runtime

= 3.4.3
= 0.0.5
 Project Readme

CircleCI Code Climate Test Coverage Dependency Status Gem Version

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

  1. Fork it ( https://github.com/westernmilling/gman_client/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request