Class: EdmundsCars::TrueMarketValue

Inherits:
Vehicles
  • Object
show all
Defined in:
lib/edmunds_cars/true_market_value.rb

Instance Method Summary collapse

Methods inherited from Vehicles

#initialize

Constructor Details

This class inherits a constructor from EdmundsCars::Vehicles

Instance Method Details

#certified_price_for_style(style_id, zip) ⇒ Object



18
19
20
# File 'lib/edmunds_cars/true_market_value.rb', line 18

def certified_price_for_style(style_id, zip)
  self.class.get_url("/findcertifiedpriceforstyle", :query => {:styleid => style_id, :zip => zip})
end

#cpo_years_by_make(make_id) ⇒ Object



22
23
24
# File 'lib/edmunds_cars/true_market_value.rb', line 22

def cpo_years_by_make(make_id)
  self.class.get_url("/findcpoyearsbymake", :query => {:makeid => make_id})
end

#new_base(style_id, zip) ⇒ Object



10
11
12
# File 'lib/edmunds_cars/true_market_value.rb', line 10

def new_base(style_id, zip)
  self.class.get("/calculatenewtmv", :query => {:styleid => style_id, :zip => zip})
end

#typically_equipped(style_id, zip) ⇒ Object



6
7
8
# File 'lib/edmunds_cars/true_market_value.rb', line 6

def typically_equipped(style_id, zip)
  self.class.get("/calculatetypicallyequippedusedtmv", :query => {:styleid => style_id, :zip => zip})
end

#used(style_id, condition, mileage, zip) ⇒ Object



14
15
16
# File 'lib/edmunds_cars/true_market_value.rb', line 14

def used(style_id, condition, mileage, zip)
  self.class.get("/calculateusedtmv", :query => {:styleid => style_id, :condition => condition, :mileage => mileage, :zip => zip})
end