Update vehicle.rb

This commit is contained in:
2016-04-27 13:10:16 -04:00
parent 0160a58c86
commit a4944f2a3b

View File

@@ -18,12 +18,17 @@ class Vehicle < ActiveRecord::Base
before_validation :decode_vin
def name
return to_s
end
def to_s
return "#{year} #{make} #{model}"
end
def details
return JSON.parse get_decoder.full(self.vin)
@@details = JSON.parse get_decoder.full(self.vin)
return @@details
end
def get_decoder