Sha256: dcf9e4c74ef958b711951587ed0e083a94fe1be3458b43b410cb22188ed82a4e
Contents?: true
Size: 516 Bytes
Versions: 3
Compression:
Stored size: 516 Bytes
Contents
module Vindetta class Validator def self.vin(vin) return false unless vin.length == Vindetta::VIN_LENGTH Calculator.check_digit(vin) == Decoder.vin(vin)[:check_digit] end def self.wmi(wmi) return false unless wmi.length == Vindetta::WMI_LENGTH true end def self.vds(vds) return false unless vds.length == Vindetta::VDS_LENGTH true end def self.vis(vis) return false unless vis.length == Vindetta::VIS_LENGTH true end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vindetta-0.22.0 | lib/vindetta/validator.rb |
vindetta-0.21.0 | lib/vindetta/validator.rb |
vindetta-0.20.0 | lib/vindetta/validator.rb |