class MediaProcessingTool::XMLParser::Document

Public Class Methods

load(xml, params = { }) click to toggle source
# File lib/media_processing_tool/xml_parser/document.rb, line 13
def self.load(xml, params = { })
  new(xml, params)
end
new(xml, params = { }) click to toggle source
# File lib/media_processing_tool/xml_parser/document.rb, line 17
def initialize(xml, params = { })
  @xml_document = self.class.xml_as_document(xml, params)
end
xml_as_document(xml, params = {}) click to toggle source
# File lib/media_processing_tool/xml_parser/document.rb, line 9
def self.xml_as_document(xml, params = {})
  AXML.xml_as_document(xml)
end

Public Instance Methods

root() click to toggle source
# File lib/media_processing_tool/xml_parser/document.rb, line 25
def root
  xml_document.root
end
root_type() click to toggle source

Gets the

# File lib/media_processing_tool/xml_parser/document.rb, line 30
def root_type
  @root_type ||= root.name
end
xml_document() click to toggle source
# File lib/media_processing_tool/xml_parser/document.rb, line 21
def xml_document
  @xml_document
end