Sha256: b17477e7972114d0c8f99a47cbbc360b63ba0defa1221d89cb3d646e672a62d3
Contents?: true
Size: 537 Bytes
Versions: 2
Compression:
Stored size: 537 Bytes
Contents
require 'restclient' module Medivo class Appointment def self.find(lab_code, date) resource.get :params=>{:labcorp_id=>lab_code, :appointment_date=>date} end private def self.resource @resource ||= begin config_file = File.join(Rails.root.join('config', 'medivo', 'appointment_resource.yml')) config = YAML.load_file(config_file)[Rails.env] RestClient::Resource.new config['href'], :timeout => (config['timeout'] || 12) rescue => e p e end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
medivo-0.1.0 | app/models/medivo/appointment.rb |
medivo-0.0.13 | app/models/medivo/appointment.rb |