This is a simple gem to get VRM details from CAP's DVLA lookup web service. You need to have a commercial relationship with them to use it, see http://cap.co.uk to contact them.
Add this line to your application's Gemfile:
gem 'CapVRM'
And then execute:
$ bundle
Or install it yourself as:
$ gem install CapVRM
require 'rubygems'
require 'CapVRM'
CapVRM.config username: 'account', password: 'password'
car_details = CapVRM.fetch vrm: 'MV07 XXX'
car_details.found? # true/false
car_details.make # Vauxhall (maybe)
car_details.manufacturer # Zafira
### More to follow
- Fork it ( https://github.com/[my-github-username]/CapVRM/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request