module MotoRecall

Constants

VERSION

Public Class Methods

find(make, vin) click to toggle source
# File lib/moto_recall.rb, line 29
def self.find(make, vin)
  raise InvalidVinError, "VIN is not 17 chars" if vin.length != 17
  client_class = ClassMap.class_for_make(make)
  begin
    client_class.new.find(vin)
  rescue StandardError => error
    raise MotoRecall::ClientException, "(#{client_class}) #{error.class}: #{error.inspect}\n#{error.backtrace.join("\n")}"
  end
end