lib/shapewear/wsdl.rb in shapewear-0.1.4 vs lib/shapewear/wsdl.rb in shapewear-0.1.5

- old
+ new

@@ -90,11 +90,11 @@ end params.each do |p| t = p.last param_name = p.first - param_name = param_name.to_s.camelize if param_name.is_a?(Symbol) + param_name = param_name.camelize_if_symbol(false) if t.nil? xseq.element :name => param_name, :minOccurs => 0, :maxOccurs => 1, :type => 'xsd:any' elsif t.is_a?(Class) xseq.element :name => param_name, :minOccurs => 0, :maxOccurs => 1, :type => to_xsd_type(t) elsif t.is_a?(Hash) @@ -133,10 +133,10 @@ if ret.is_a?(Hash) xschema.complexType :name => "#{op_options[:public_name]}Struct" do |xctr| xctr.sequence do |xseqr| ret.each do |name, type| - name = name.to_s.camelize if name.is_a?(Symbol) + name = name.camelize_if_symbol xseqr.element :name => name, :minOccurs => 0, :maxOccurs => 1, :type => to_xsd_type(type) end end end end