Sha256: dd4f22cb56756007d49742c670b19bc35bf4c8764793b2a910655a4ac304830f
Contents?: true
Size: 416 Bytes
Versions: 3
Compression:
Stored size: 416 Bytes
Contents
module FHIR def self.logger @logger || default_logger end def self.logger=(logger) @logger = logger end def self.default_logger @default_logger ||= Logger.new("fhir_models.log", 10, 1024000) end def self.from_contents(contents) doc = Nokogiri::XML(contents) if doc.errors.empty? FHIR::Xml.from_xml(contents) else FHIR::Json.from_json(contents) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fhir_models-1.6.3 | lib/fhir.rb |
fhir_models-1.6.2 | lib/fhir.rb |
fhir_models-1.6.1 | lib/fhir.rb |