Class: LogStash::Outputs::InfluxDB2::ToStr

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/outputs/influxdb2.rb

Overview

prevents auto escape by client library.

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ ToStr

Returns a new instance of ToStr.



68
69
70
# File 'lib/logstash/outputs/influxdb2.rb', line 68

def initialize(obj)
  @obj = obj
end

Instance Method Details

#to_sObject



72
73
74
# File 'lib/logstash/outputs/influxdb2.rb', line 72

def to_s
  @obj.to_s
end

#to_strObject



76
77
78
# File 'lib/logstash/outputs/influxdb2.rb', line 76

def to_str
  @obj.to_str
end