Sha256: c2f08e05d0ec8629786b902483f7ca391d5b1b59ad4d69b74cce4f356bfae532

Contents?: true

Size: 277 Bytes

Versions: 7

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true

require 'influxdb'

module Influxer
  # InfluxDB API client
  class Client < ::InfluxDB::Client
    def initialize
      super Influxer.config.as_json.symbolize_keys!
    end

    def time_precision
      @config.time_precision
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
influxer-1.1.6 lib/influxer/client.rb
influxer-1.1.5 lib/influxer/client.rb
influxer-1.1.4 lib/influxer/client.rb
influxer-1.1.3 lib/influxer/client.rb
influxer-1.1.2 lib/influxer/client.rb
influxer-1.1.1 lib/influxer/client.rb
influxer-1.1.0 lib/influxer/client.rb