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 36 def self.client @client ||= Client.new end
config()
click to toggle source
# File lib/influxer.rb, line 28 def self.config @config ||= Config.new end
configure() { |config| ... }
click to toggle source
# File lib/influxer.rb, line 32 def self.configure yield(config) if block_given? end
reset!()
click to toggle source
# File lib/influxer.rb, line 40 def self.reset! @client&.stop! @config = nil @client = nil end
thread_registry_support?()
click to toggle source
# File lib/influxer.rb, line 13 def self.thread_registry_support? ActiveModel::VERSION::MAJOR < 7 end