Class: CommonCartridge::Parsers::Outcomes

Inherits:
Object
  • Object
show all
Defined in:
lib/common_cartridge/parsers/outcomes.rb

Instance Method Summary collapse

Constructor Details

#initialize(zipfile) ⇒ Outcomes

Returns a new instance of Outcomes.



4
5
6
# File 'lib/common_cartridge/parsers/outcomes.rb', line 4

def initialize(zipfile)
  @zipfile = zipfile
end

Instance Method Details

#parse!Object



8
9
10
11
12
# File 'lib/common_cartridge/parsers/outcomes.rb', line 8

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