Module: SOAP::Mapping::TraverseSupport

Included in:
EncodedRegistry, Factory
Defined in:
lib/soap/mapping/mapping.rb

Instance Method Summary collapse

Instance Method Details

#mark_marshalled_obj(obj, soap_obj) ⇒ Object



25
26
27
28
# File 'lib/soap/mapping/mapping.rb', line 25

def mark_marshalled_obj(obj, soap_obj)
  raise if obj.nil?
  Thread.current[:SOAPMapping][:MarshalKey][obj.__id__] = soap_obj
end

#mark_unmarshalled_obj(node, obj) ⇒ Object



30
31
32
33
34
# File 'lib/soap/mapping/mapping.rb', line 30

def mark_unmarshalled_obj(node, obj)
  return if obj.nil?
  # node.id is not Object#id but SOAPReference#id
  Thread.current[:SOAPMapping][:MarshalKey][node.id] = obj
end