lib/salesforce_bulk/core_extensions/string.rb
def to_b
    if present?
      if lstrip.rstrip.casecmp("true") == 0
        return true
      elsif lstrip.rstrip.casecmp("false") == 0
        return false
      end
    end
    self
  end
# For converting "true" and "false" string values returned 
# by Salesforce Bulk API in batch results to real booleans.
For converting "true" and "false" string values returned
by Salesforce Bulk API in batch results to real booleans.
For converting " true " and " false " string values returned by Salesforce Bulk API in batch results to real booleans .
def to_b
    if present?
      if lstrip.rstrip.casecmp("true") == 0
        return true
      elsif lstrip.rstrip.casecmp("false") == 0
        return false
      end
    end
    self
  end
def to_b if present? if lstrip . rstrip . casecmp ( "true" ) == 0 return true elsif lstrip . rstrip . casecmp ( "false" ) == 0 return false end end self end
For converting "true" and "false" string values returned
by Salesforce Bulk API in batch results to real booleans.
For converting " true " and " false " string values returned by Salesforce Bulk API in batch results to real booleans .