Class: SOAP::Mapping::FixnumFactory_

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

#obj2soap(soap_class, obj, info, map) ⇒ Object


130
131
132
133
134
135
136
137
138
# File 'lib/soap/mapping/factory.rb', line 130

def obj2soap(soap_class, obj, info, map)
  soap_obj = nil
  begin
    soap_obj = soap_class.new(obj)
  rescue XSD::ValueSpaceError
    return nil
  end
  soap_obj
end

#soap2obj(obj_class, node, info, map) ⇒ Object


140
141
142
143
# File 'lib/soap/mapping/factory.rb', line 140

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