Class: Vindetta::Decoder

Inherits:
Object
  • Object
show all
Defined in:
lib/vindetta/decoder.rb

Class Method Summary collapse

Class Method Details

.vin(vin) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/vindetta/decoder.rb', line 3

def self.vin(vin)
  {
    :plant_code => vin[PLANT_CODE_INDEX],
    :wmi => vin[WMI_RANGE],
    :check_digit => vin[CHECK_DIGIT_INDEX],
    :production_number => vin[PRODUCTION_NUMBER_RANGE]
  }
end