mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update vehicle.rb
This commit is contained in:
@@ -27,6 +27,18 @@ class Vehicle < ActiveRecord::Base
|
||||
return @details
|
||||
end
|
||||
|
||||
def style
|
||||
return @details['years'][0]['styles'][0]['name'] if @details
|
||||
end
|
||||
|
||||
def drive
|
||||
return @details['drivenWheels'] if @details
|
||||
end
|
||||
|
||||
def doors
|
||||
@details['numOfDoors'] if @details
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def get_details
|
||||
|
||||
Reference in New Issue
Block a user