forked from swoker/drivenow-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
30 lines (24 loc) · 813 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
= 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.