Class: SOAP::RPC::MappingRegistry
- Defined in:
- lib/soap/compat.rb
Instance Method Summary collapse
- #add(obj_class, soap_class, factory, info = nil) ⇒ Object (also: #set)
-
#initialize(*arg) ⇒ MappingRegistry
constructor
A new instance of MappingRegistry.
Constructor Details
#initialize(*arg) ⇒ MappingRegistry
Returns a new instance of MappingRegistry.
162 163 164 |
# File 'lib/soap/compat.rb', line 162 def initialize(*arg) super end |
Instance Method Details
#add(obj_class, soap_class, factory, info = nil) ⇒ Object Also known as: set
166 167 168 169 170 171 |
# File 'lib/soap/compat.rb', line 166 def add(obj_class, soap_class, factory, info = nil) if (info.size > 1) raise RuntimeError.new("Parameter signature changed. [namespace, name] should be { :type => XSD::QName.new(namespace, name) } from 1.5.0.") end @map.add(obj_class, soap_class, factory, { :type => info[0] }) end |