Gem to read all cars from DriveNow
Ruby
Pull request Compare This branch is 4 commits ahead, 10 commits behind swoker:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
CHANGELOG.md
Gemfile
LICENSE
README
Rakefile
drivenow.gemspec

README

= 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.