Sha256: e63031e3d8ced01ea297e4688fbe037937a467a81a9fc882aab7a31be4827d26
Contents?: true
Size: 720 Bytes
Versions: 7
Compression:
Stored size: 720 Bytes
Contents
# frozen_string_literal: true require 'influxer/version' require 'active_model' # Rails client for InfluxDB module Influxer def self.active_model3? ActiveModel::VERSION::MAJOR == 3 end require 'influxer/config' require 'influxer/client' require 'influxer/metrics/metrics' module Model # :nodoc: require 'influxer/model' end require 'influxer/rails/client' if defined?(Rails) require 'influxer/engine' if defined?(Rails) def self.config @config ||= Config.new end def self.configure yield(config) if block_given? end def self.client @client ||= Client.new end def self.reset! @client.stop! unless @client.nil? @config = nil @client = nil end end
Version data entries
7 entries across 7 versions & 1 rubygems