module Vindsl::WMI

World Manufacturer Number

Constants

COUNTRIES
COUNTRY_MATCHER
MANUFACTURERS
MANUFACTURER_MATCHER

Public Class Methods

country_for(vin) click to toggle source
# File lib/vindsl/wmi.rb, line 512
def self.country_for(vin)
  COUNTRY_MATCHER.find vin
end
country_prefixes_for(country_name) click to toggle source
# File lib/vindsl/wmi.rb, line 516
def self.country_prefixes_for(country_name)
  COUNTRIES.select{ |k, name| name == country_name }.keys
end
manufacturer_for(vin) click to toggle source
# File lib/vindsl/wmi.rb, line 520
def self.manufacturer_for(vin)
  MANUFACTURER_MATCHER.find vin
end
manufacturer_prefixes_for(manufacturer_name) click to toggle source
# File lib/vindsl/wmi.rb, line 524
def self.manufacturer_prefixes_for(manufacturer_name)
  MANUFACTURERS.select{ |k, name| name == manufacturer_name }.keys
end