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

安装:
=

版本列表:

  1. 0.0.8 March 23, 2019 (14.0 KB)
  2. 0.0.7 February 21, 2018 (14.0 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.0 KB)
  6. 0.0.1 February 02, 2018 (11.0 KB)
显示所有版本 (共 8 个)

Development 依赖 (3):

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

所有者:

作者:

  • Barclay Loftus

SHA 256 校验和:

=

下载总量 849,967

这个版本 1,775

版本发布:

许可:

MIT

需要的 Ruby 版本: >= 2.3.0

链接: