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
|
return @details
|
||||||
end
|
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
|
private
|
||||||
|
|
||||||
def get_details
|
def get_details
|
||||||
|
|||||||
Reference in New Issue
Block a user