Sha256: fe57bb0848ddbcac1bb2dc2ce4a324ceb120ce8f9084fdb0ff68070cf1dd656b

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 Bytes

Contents

require 'eeml/libxml_eeml_output_v005'
require 'eeml/libxml_eeml_output_v051'
require 'eeml/json_output'

module Eeml
  class OutputRegistry # :nodoc:
    #look at the given xml, build and return a new v005 or 006 parser, accordingly
    def self.get_xml_output_for(version = Constants::EEML['0.5.0'][:version])
      return LibXMLEemlOutputV051.new if version == Constants::EEML['0.5.1'][:version]
      LibXMLEemlOutputV005.new
    end

    def self.get_json_output_for(version = Constants::EEML['0.5.0'][:version])
      JsonOutput.new
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eeml-0.0.21 lib/eeml/output_registry.rb
eeml-0.0.18 lib/eeml/output_registry.rb