Class: InfluxDB2::WriteApi::BatchItem
- Inherits:
 - 
      Object
      
        
- Object
 - InfluxDB2::WriteApi::BatchItem
 
 
- Defined in:
 - lib/influxdb2/client/write_api.rb
 
Overview
Item for batching queue
Instance Attribute Summary collapse
- 
  
    
      #data  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute data.
 - 
  
    
      #key  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute key.
 
Instance Method Summary collapse
- 
  
    
      #initialize(key, data)  ⇒ BatchItem 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of BatchItem.
 
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
      223 224 225  | 
    
      # File 'lib/influxdb2/client/write_api.rb', line 223 def data @data end  | 
  
#key ⇒ Object (readonly)
Returns the value of attribute key.
      223 224 225  | 
    
      # File 'lib/influxdb2/client/write_api.rb', line 223 def key @key end  |