Sha256: fe0c7493def40be54bef8bca2f6bb27a66a7ed0cb5c90eff4e825fcf060b0120
Contents?: true
Size: 490 Bytes
Versions: 3
Compression:
Stored size: 490 Bytes
Contents
module InfluxDB module Rails class Values def initialize(values: {}, additional_values: InfluxDB::Rails.current.values) @values = values @additional_values = additional_values end def to_h expanded_values.reject do |_, value| value.nil? || value == "" end end private attr_reader :additional_values, :values def expanded_values values.merge(additional_values) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
influxdb-rails-1.0.1.beta3 | lib/influxdb/rails/values.rb |
influxdb-rails-1.0.1.beta2 | lib/influxdb/rails/values.rb |
influxdb-rails-1.0.1.beta1 | lib/influxdb/rails/values.rb |