lib/vwo/utils/segment.rb
# Processes the value from the custom_variables_variables
# @param[String|Number|Boolean|nil]   :custom_variables_value  the custom_variables_value provided inside custom_variables
#
# @return [String]                                             stringified value of processed custom_variables_value
#
Processes the value from the custom_variables_variables
Processes the value from the custom_variables_variables
def process_custom_variables_value(custom_variables_value)
        return '' if custom_variables_value.nil?
        if custom_variables_value.is_a?(TrueClass) || custom_variables_value.is_a?(FalseClass)
          custom_variables_value = custom_variables_value ? OperandValuesBooleanTypes::TRUE : OperandValuesBooleanTypes::FALSE
        end
        custom_variables_value.to_s
      end
def process_custom_variables_value ( custom_variables_value ) return '' if custom_variables_value . nil? if custom_variables_value . is_a? ( TrueClass ) || custom_variables_value . is_a? ( FalseClass ) custom_variables_value = custom_variables_value ? OperandValuesBooleanTypes :: TRUE : OperandValuesBooleanTypes :: FALSE end custom_variables_value . to_s end
Processes the value from the custom_variables_variables
Processes the value from the custom_variables_variables
stringified value of processed custom_variables_value
stringified value of processed custom_variables_value
String
custom_variables_value
<not_specific>
param[String|Number|Boolean|nil]
:custom_variables_value the custom_variables_value provided inside custom_variables
: custom_variables_value the custom_variables_value provided inside custom_variables