Sha256: d25217e6c01f00e05120c62d38f19796ed16c04042be12590a145ecb8b45b08d
Contents?: true
Size: 526 Bytes
Versions: 9
Compression:
Stored size: 526 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 => e render :json=> {:status=>'Error', :message=>"Problem getting data: #{e.message}"}, :status=> 500, :layout => nil end end end
Version data entries
9 entries across 9 versions & 1 rubygems