Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vistahigherlearning / common_cartridge   ruby

Repository URL to install this package:

Version: 1.0.1 

/ lib / common_cartridge / parsers / outcomes.rb

module CommonCartridge
  module Parsers
    class Outcomes
      def initialize(zipfile)
        @zipfile = zipfile
      end

      def parse!
        Parser.use_file(@zipfile, 'course_settings/learning_outcomes.xml') do |xml|
          return CommonCartridge::Elements::Outcomes::OutcomeRoot.parse(xml)
        end
      end
    end
  end
end