class InfluxDB2::WritePrecision

Precision constants.

Constants

MICROSECOND
MILLISECOND
NANOSECOND
SECOND

Public Instance Methods

get_from_value(value) click to toggle source
# File lib/influxdb2/client/write_api.rb, line 115
def get_from_value(value)
  constants = WritePrecision.constants.select { |c| WritePrecision.const_get(c) == value }
  raise "The time precision #{value} is not supported." if constants.empty?

  value
end