Class: SOAP::Mapping
- Inherits:
-
Object
- Object
- SOAP::Mapping
- Defined in:
- lib/soapex/mapping.rb
Overview
Apply mapping patch only if it has not already been applied.
Class Method Summary collapse
Class Method Details
.set_attributes(obj, values) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/soapex/mapping.rb', line 16 def set_attributes(obj, values) if not obj.is_a?(::SOAP::Mapping::Object) and obj.kind_of?(Array) values.each do |key, value| if value.kind_of?(Array) obj.concat(value) else obj << value end end else set_attributes_old(obj, values) end end |
.set_attributes_old ⇒ Object
15 |
# File 'lib/soapex/mapping.rb', line 15 alias set_attributes_old set_attributes |