module Xapper

Public Instance Methods

map(mapping, xml) click to toggle source
# File lib/xapper.rb, line 14
def map(mapping, xml)
  @@mappings[mapping].map(xml)
end
mappings(hash, namespaces = nil) click to toggle source
# File lib/xapper.rb, line 7
def mappings(hash, namespaces = nil)
  mapper = Mapper.new
  mapper.mappings = hash[hash.keys[0]]
  mapper.namespaces = namespaces
  @@mappings[hash.keys[0]] = mapper
end