mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-12-29 14:11:00 -05:00
Edmunds API Key
This commit is contained in:
@@ -12,6 +12,8 @@ class Vehicle < ActiveRecord::Base
|
|||||||
|
|
||||||
unloadable
|
unloadable
|
||||||
|
|
||||||
|
API_KEY = Setting.plugin_redmine_qbo['settingsEdmundsAPIKey']
|
||||||
|
|
||||||
belongs_to :customer
|
belongs_to :customer
|
||||||
has_many :issues, :foreign_key => 'vehicles_id'
|
has_many :issues, :foreign_key => 'vehicles_id'
|
||||||
|
|
||||||
@@ -91,7 +93,7 @@ class Vehicle < ActiveRecord::Base
|
|||||||
# returns the Edmunds decoder service
|
# returns the Edmunds decoder service
|
||||||
def get_decoder
|
def get_decoder
|
||||||
#TODO API Code via Settings
|
#TODO API Code via Settings
|
||||||
return decoder = Edmunds::Vin.new('2dheutzvhxs28dzukx5tgu47')
|
return decoder = Edmunds::Vin.new(API_KEY)
|
||||||
end
|
end
|
||||||
|
|
||||||
# decodes a vin and updates self
|
# decodes a vin and updates self
|
||||||
|
|||||||
Reference in New Issue
Block a user