lib/rets/metadata/root.rb
# Metadata_types is the low level parsed representation of the raw xml
# sources. Just one level up, they contain Containers, consisting of
# SystemContainers or RowContainers
Metadata_types is the low level parsed representation of the raw xml
sources. Just one level up, they contain Containers, consisting of
SystemContainers or RowContainers
Metadata_types is the low level parsed representation of the raw xml sources . Just one level up they contain Containers consisting of SystemContainers or RowContainers
def build_tree
        tree = Hash.new { |h, k| h.key?(k.downcase) ? h[k.downcase] : nil }
        resource_containers = metadata_types[:resource]
        resource_containers.each do |resource_container|
          resource_container.rows.each do |resource_fragment|
            resource = Resource.build(resource_fragment, metadata_types, @logger)
            tree[resource.id.downcase] = resource if resource
          end
        end
        tree
      end
def build_tree tree = Hash . new { | h , k | h . key? ( k . downcase ) ? h [ k . downcase ] : nil } resource_containers = metadata_types [ :resource ] resource_containers . each do | resource_container | resource_container . rows . each do | resource_fragment | resource = Resource . build ( resource_fragment , metadata_types , @logger ) tree [ resource . id . downcase ] = resource if resource end end tree end
Metadata_types is the low level parsed representation of the raw xml
sources.
Metadata_types is the low level parsed representation of the raw xml sources .
#some mlses list resource types without an associated data, throw those away