private Method

Operation.sort_parts(parts)

There's no documentation for this item.

Source Code

# File wsdl/operation.rb, line 112
def sort_parts(parts)
  return parts.dup unless parameter_order
  result = []
  parameter_order.each do |orderitem|
    if (ele = parts.find { |part| part.name == orderitem })
      result << ele
    end
  end
  if result.length == 0
    return parts.dup
  end
  # result length can be shorter than parts's.
  # return part must not be a part of the parameterOrder.
  result
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.