app/helpers/washout_builder_fault_type_helper.rb
# this method is used to print all attributes of a SoapFault element
# if the attribute value is a primitve value it will be shown in blue and will also show the type of the primitive
# if is a complex type will use another method for finding out the complex class
#
# @see #primitive_type_is_basic?
# @see #create_fault_model_complex_element_type
# @see #get_member_type_string
#
# @param [Array] pre Array that contains the content that will be appended to the xml element li
# @param [String] attribute  The name of the attribute that needs to be printed
#
# @param [Hash] attr_details hash that contains the member type and determines if the member typs is complex or not
# @option attr_details [String] :member_type The member type of the element ( basic or complex type)
# @option attr_details [String]:primitive  the primitive determines if is an array or not
#
# @return [String] if the primitive is basic or nil , will return the primitive type and the attribute with blue, otherwise will print the complex type and the attribute
#
# @api public
this method is used to print all attributes of a SoapFault element
if the attribute value is a primitve value it will be shown in blue and will also show the type of the primitive
if is a complex type will use another method for finding out the complex class
this method is used to print all attributes of a SoapFault element if the attribute value is a primitve value it will be shown in blue and will also show the type of the primitive if is a complex type will use another method for finding out the complex class
def create_html_fault_model_element_type(pre, attribute, attr_details)
    if primitive_type_is_basic?(attr_details) || attr_details[:primitive] == 'nilclass'
      pre << "<span class='blue'>#{get_primitive_type_string(attr_details)}</span>&nbsp;<span class='bold'>#{attribute}</span>"
    else
      create_fault_model_complex_element_type(pre, get_member_type_string(attr_details), attribute, true)
    end
  end
def create_html_fault_model_element_type ( pre , attribute , attr_details ) if primitive_type_is_basic? ( attr_details ) || attr_details [ :primitive ] == 'nilclass' pre << "<span class='blue'>#{get_primitive_type_string(attr_details)}</span>&nbsp;<span class='bold'>#{attribute}</span>" else create_fault_model_complex_element_type ( pre , get_member_type_string ( attr_details ) , attribute , true ) end end
this method is used to print all attributes of a SoapFault element
if the attribute value is a primitve value it will be shown in blue and will also show the type of the primitive
if is a complex type will use another method for finding out the complex class
this method is used to print all attributes of a SoapFault element if the attribute value is a primitve value it will be shown in blue and will also show the type of the primitive if is a complex type will use another method for finding out the complex class
if the primitive is basic or nil , will return the primitive type and the attribute with blue, otherwise will print the complex type and the attribute
if the primitive is basic or nil will return the primitive type and the attribute with blue otherwise will print the complex type and the attribute
String
pre
<not_specific>
attribute
<not_specific>
attr_details
:primitive the primitive determines if is an array or not
: primitive the primitive determines if is an array or not
<not_specific>
attr_details hash that contains the member type and determines if the member typs is complex or not
attr_details hash that contains the member type and determines if the member typs is complex or not
see
None
see
None
see
None
api
None