Wrapper for the Chicago Divvy Bike Sharing System API.
Add this line to your application's Gemfile:
gem 'divvy_bike'
And then execute:
bundle
Or install it yourself as:
gem install divvy_bike
DivvyBike.all
You may pass the following filter criteria
:id, :station_name, :available_docks, :total_docks, :latitude, :longitude, :status_value, :status_key, :available_bikes, :st_address_1, :st_address_2, :city, :postal_code, :location, :altitude, :test_station, :last_communication_time, :land_mark
DivvyBike.get(:id => 2)
DivvyBike.get(:id => 2, :available_docks => 19)
DivvyBike.get({ :id => 2, :available_docks => 19, :status_key => 1 })
Returns all stations with available bikes
DivvyBike.has_available_bikes
Returns all stations with available docks
DivvyBike.has_available_docks
Feel free to contact me with any questions/comments or pull requests