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_container(fragment)
        tag  = fragment.name             
        type = tag.sub(/^METADATA-/, "") 
        class_name = type.capitalize.gsub(/_(\w)/) { $1.upcase }
        container_name = "#{class_name}Container"
        if ::RUBY_VERSION < '1.9'
          container_class = Containers.const_defined?(container_name) ? Containers.const_get(container_name) : Containers::Container
        else
          container_class = Containers.const_defined?(container_name, true) ? Containers.const_get(container_name, true) : Containers::Container
        end
        container_class.new(fragment)
      end
def build_container ( fragment ) tag = fragment . name type = tag . sub ( / ^METADATA- / , "" ) class_name = type . capitalize . gsub ( / _( \w ) / ) { $1 . upcase } container_name = "#{class_name}Container" if :: RUBY_VERSION < '1.9' container_class = Containers . const_defined? ( container_name ) ? Containers . const_get ( container_name ) : Containers :: Container else container_class = Containers . const_defined? ( container_name , true ) ? Containers . const_get ( container_name , true ) : Containers :: Container end container_class . new ( fragment ) 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 .
# METADATA-RESOURCE # RESOURCE
fragment