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 / elements / manifest.rb

module CommonCartridge
  module Elements
    class Manifest
      include SAXMachine

      element :metadata, class: CommonCartridge::Elements::Metadata
      element :organizations, class: CommonCartridge::Elements::Organizations::RootOrganization, as: :root_organization
      element :resources, class: CommonCartridge::Elements::Resources::RootResource, as: :root_resource

      def organizations
        root_organization.organizations
      end

      def resources
        root_resource.resources
      end

      def organization
        organizations.first
      end

    end
  end
end