def quote_timestamp(val, client)
      if Influxer.config.time_duration_suffix_enabled
        precision = if TIME_FACTORS.keys.include?(client.time_precision)
                      client.time_precision
                    else
                      DEFAULT_PRECISION
                    end
        return quote_timestamp_with_suffix(val, precision)
      end

      if !TIME_FACTORS.keys.include?(client.time_precision) &&
         !val.is_a?(Numeric)
        warn(
          "Influxer doesn't automatically cast Time and String values " \
          "to '#{client.time_precision}' precision. " \
          "Please, convert to numeric value yourself"
        )
        return val
      end

      factorize_timestamp(val, TIME_FACTORS.fetch(client.time_precision))
    end
def quote_timestamp(val, client)
      if Influxer.config.time_duration_suffix_enabled
        precision = if TIME_FACTORS.keys.include?(client.time_precision)
                      client.time_precision
                    else
                      DEFAULT_PRECISION
                    end
        return quote_timestamp_with_suffix(val, precision)
      end

      if !TIME_FACTORS.keys.include?(client.time_precision) &&
         !val.is_a?(Numeric)
        warn(
          "Influxer doesn't automatically cast Time and String values " \
          "to '#{client.time_precision}' precision. " \
          "Please, convert to numeric value yourself"
        )
        return val
      end

      factorize_timestamp(val, TIME_FACTORS.fetch(client.time_precision))
    end
Quote timestamp
 rubocop: disable Metrics/MethodLength, Metrics/AbcSize