Sha256: 7d776602ebde0e44809a59b8a647ceb05a0d17855dea9c797e684113a121af6a
Contents?: true
Size: 477 Bytes
Versions: 3
Compression:
Stored size: 477 Bytes
Contents
module Medivo class LabsController < ActionController::Base def lab_data lab_data = Medivo::Lab.data_for_zip(params[:zip_code]) render :json=> lab_data, :layout => nil end def appointment_data data = Medivo::Appointment.find(params[:lab_code], params[:appointment_date]) render :json=> data, :layout => nil rescue render :json=> {:code=>'Failure', :msg=>"Problem getting data"}, :status=> 500, :layout => nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
medivo-0.1.14 | app/controllers/medivo/labs_controller.rb |
medivo-0.1.13 | app/controllers/medivo/labs_controller.rb |
medivo-0.1.12 | app/controllers/medivo/labs_controller.rb |