Sha256: c2497d01f8f263b00e05eb57172402b1a0de177b582be2b8bcb38060e63a00f6
Contents?: true
Size: 482 Bytes
Versions: 2
Compression:
Stored size: 482 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.to_s.blank? end end private attr_reader :additional_values, :values def expanded_values values.merge(additional_values) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
influxdb-rails-1.0.3 | lib/influxdb/rails/values.rb |
influxdb-rails-1.0.2 | lib/influxdb/rails/values.rb |