model/vehicle.rb
# faz o merge entre dois vehicles.
faz o merge entre dois vehicles.
faz o merge entre dois vehicles .
def merge(vehicle_strans)
    return nil if vehicle_strans.nil?
    @code = vehicle_strans.codigoVeiculo
    @time = vehicle_strans.hora
    @lat = vehicle_strans.lat
    @long = vehicle_strans.long
    @line = Line.new.merge(vehicle_strans.linha)
  end
def merge ( vehicle_strans ) return nil if vehicle_strans . nil? @code = vehicle_strans . codigoVeiculo @time = vehicle_strans . hora @lat = vehicle_strans . lat @long = vehicle_strans . long @line = Line . new . merge ( vehicle_strans . linha ) end
faz o merge entre dois vehicles.
faz o merge entre dois vehicles .
vehicle_strans
<not_specific>