Project

drivenow

0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Wraps the DriveNow JSON to use it nicely in your own environment. You can use this Gem to read all cars that are available.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

~> 1.6
 Project Readme

Installation

gem install 'drivenow'

Get API key

You need an API key for requests.

Example

require 'drivenow'

puts "Available cities: #{Drivenow::Agent.cities.keys.inspect}"

# get all available cars
cars = Drivenow::Agent.new(city: :muenchen, api_key: ENV['DRIVENOW_APIKEY']).cars

car = cars.first
puts car.json.inspect
puts car.address
puts car.name
puts car.long_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.fuel_type
puts car.transmission
puts car.clean