mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Update vehicle.rb
This commit is contained in:
@@ -52,6 +52,7 @@ class Vehicle < ActiveRecord::Base
|
||||
|
||||
# init method to pull JSON details from Edmunds
|
||||
def get_details
|
||||
# TODO handle ERRORS
|
||||
if self.vin?
|
||||
@details = JSON.parse get_decoder.full(self.vin)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user