forked from swoker/drivenow-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Gem to read all cars from DriveNow
License
jonaswitt/drivenow-ruby
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
= Installation gem install 'drivenow' = Example require 'drivenow' puts "Available cities: #{Drivenow::Agent.cities.keys.inspect}" # get all available cars cars = Drivenow::Agent.new(:city => :muenchen).cars car = cars.first puts car.json.inspect puts car.name puts car.city puts car.address.inspect puts car.automatic? puts car.license_plate puts car.model puts car.position.inspect puts car.fuel_state puts car.clean = Known Bugs Sometimes cars are in the city of Unterhaching, Oberding or Korschenbroich, so near another "official" city. These are not included in the current "master-city" yet. = Known problems There are still some problems with encoding in Ruby 1.8.7. With Ruby 1.9 you can just use "öäü".encode("UTF-8") and you're good.
About
Gem to read all cars from DriveNow
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Ruby 100.0%