require 'active_resource' require_relative 'resource_config' module Medivo class LabResource < ActiveResource::Base resource = ResourceConfig.find 'lab_resource.yml' self.include_root_in_json = false self.site = resource.href self.user = resource.user self.password = resource.password self.format = :xml end end