module Influxer

Rails client for InfluxDB

Public Class Methods

active_model3?() click to toggle source
# File lib/influxer.rb, line 9
def self.active_model3?
  ActiveModel::VERSION::MAJOR == 3
end
client() click to toggle source
# File lib/influxer.rb, line 32
def self.client
  @client ||= Client.new
end
config() click to toggle source
# File lib/influxer.rb, line 24
def self.config
  @config ||= Config.new
end
configure() { |config| ... } click to toggle source
# File lib/influxer.rb, line 28
def self.configure
  yield(config) if block_given?
end
reset!() click to toggle source
# File lib/influxer.rb, line 36
def self.reset!
  @client&.stop!
  @config = nil
  @client = nil
end