Class: SOAP::Mapping::Base64Factory_

Inherits:
Factory show all
Defined in:
lib/soap/mapping/factory.rb

Instance Method Summary (collapse)

Methods inherited from Factory

#initialize, #setiv2obj, #setiv2soap

Methods included from TraverseSupport

#mark_marshalled_obj, #mark_unmarshalled_obj

Constructor Details

This class inherits a constructor from SOAP::Mapping::Factory

Instance Method Details

- (Object) obj2soap(soap_class, obj, info, map)



209
210
211
212
213
214
# File 'lib/soap/mapping/factory.rb', line 209

def obj2soap(soap_class, obj, info, map)
  return nil unless obj.instance_variables.empty?
  soap_obj = soap_class.new(obj)
  mark_marshalled_obj(obj, soap_obj) if soap_obj
  soap_obj
end

- (Object) soap2obj(obj_class, node, info, map)



216
217
218
219
220
# File 'lib/soap/mapping/factory.rb', line 216

def soap2obj(obj_class, node, info, map)
  obj = node.string
  mark_unmarshalled_obj(node, obj)
  return true, obj
end