Class: InfluxDB2::WriteApi::BatchItem

Inherits:
Object
  • Object
show all
Defined in:
lib/influxdb2/client/write_api.rb

Overview

Item for batching queue

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, data) ⇒ BatchItem

Returns a new instance of BatchItem.



219
220
221
222
# File 'lib/influxdb2/client/write_api.rb', line 219

def initialize(key, data)
  @key = key
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



223
224
225
# File 'lib/influxdb2/client/write_api.rb', line 223

def data
  @data
end

#keyObject (readonly)

Returns the value of attribute key.



223
224
225
# File 'lib/influxdb2/client/write_api.rb', line 223

def key
  @key
end