You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: point_value.rb
    path of file: ./repos/influxdb-ruby/lib/influxdb
    
    the code of the file until where you have to start completion: module InfluxDB
  # Convert data point to string using Li
    
    def escape_value(value)
      if value.is_a?(String)
        '"'.freeze + escape(value, :field_value) + '"'.freeze
      elsif value.is_a?(Integer)
        "#{value}i"
      else
        value.to_s
      end