Method: WashOut::Param#initialize
- Defined in:
- lib/wash_out/param.rb
#initialize(soap_config, name, type, multiplied = false) ⇒ Param
Defines a WSDL parameter with name name and type specifier type. The type specifier format is described in #parse_def.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/wash_out/param.rb', line 14 def initialize(soap_config, name, type, multiplied = false) type ||= {} @soap_config = soap_config @name = name.to_s @raw_name = name.to_s @map = {} @multiplied = multiplied if soap_config.camelize_wsdl.to_s == 'lower' @name = @name.camelize(:lower) elsif soap_config.camelize_wsdl @name = @name.camelize end if type.is_a?(Symbol) @type = type.to_s elsif type.is_a?(Class) @type = 'struct' @map = self.class.parse_def(soap_config, type.wash_out_param_map) @source_class = type else @type = 'struct' @map = self.class.parse_def(soap_config, type) end end |