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


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

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


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

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