RubyGems Navigation menu

nhtsa_vin 0.0.1

# NHTSA Vin ---- A ruby gem for fetching and parsing vehicle identification via the vehicle identification number (VIN) from the [NHTSA webservice](https://vpic.nhtsa.dot.gov/api/Home). Note, this gem is not officially affiliated with the NHTSA. Please note, this gem is currently in early development. ## Installation Add this line to your application's Gemfile: ```ruby gem 'nhsta_vin' ``` And then execute: bundle Or install it yourself as: gem install nhsta_vin ## Usage Usage is fairly simple. Provide a VIN, and the gem will return a struct of vehicle data. ```ruby query = NhtsaVin.get('1J4BA5H11AL143811') query.valid? # => true query.response # => <Struct::NhtsaResponse make="Jeep", model="Grand Cherokee", trim="Laredo/Rocky Mountain Edition", type="SUV", year="2008", size=nil, ... doors=4> ``` In the result no match is found, the result will be `nil`, and `#valid?` will return `false`. Vehicle Types ---- For brievity, we're reducing the `Vehicle Type` response to an enumerated set of `["Car", "Truck", "Van", "SUV", "Minivan"]`. We're doing a rough parse of the type and body style to achieve this. It's probably not perfect. ## License Licensed under the MIT License.

Gemfile:
=

install:
=

Versions:

  1. 0.0.8 March 23, 2019 (14 KB)
  2. 0.0.7 February 21, 2018 (14 KB)
  3. 0.0.6 February 08, 2018 (13.5 KB)
  4. 0.0.5 February 07, 2018 (13.5 KB)
  5. 0.0.4 February 05, 2018 (12 KB)
  6. 0.0.1 February 02, 2018 (11 KB)
Show all versions (8 total)

Development Dependencies (3):

bundler >= 0
rake >= 0
rspec >= 0

Owners:

Authors:

  • Barclay Loftus

SHA 256 checksum:

=

Total downloads 849,966

For this version 1,775

Version Released:

License:

MIT

Required Ruby Version: >= 2.3.0

Links: