Class: IOWriter
- Inherits:
-
Object
- Object
- IOWriter
- Defined in:
- lib/logstash/outputs/kusto.rb
Overview
wrapper class
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
Instance Method Summary collapse
- #flush ⇒ Object
-
#initialize(io) ⇒ IOWriter
constructor
A new instance of IOWriter.
- #method_missing(method_name, *args, &block) ⇒ Object
- #write(*args) ⇒ Object
Constructor Details
#initialize(io) ⇒ IOWriter
Returns a new instance of IOWriter.
380 381 382 |
# File 'lib/logstash/outputs/kusto.rb', line 380 def initialize(io) @io = io end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &block) ⇒ Object
393 394 395 396 397 398 399 400 |
# File 'lib/logstash/outputs/kusto.rb', line 393 def method_missing(method_name, *args, &block) if @io.respond_to?(method_name) @io.send(method_name, *args, &block) else super end end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
401 402 403 |
# File 'lib/logstash/outputs/kusto.rb', line 401 def active @active end |
Instance Method Details
#flush ⇒ Object
389 390 391 |
# File 'lib/logstash/outputs/kusto.rb', line 389 def flush @io.flush end |
#write(*args) ⇒ Object
384 385 386 387 |
# File 'lib/logstash/outputs/kusto.rb', line 384 def write(*args) @io.write(*args) @active = true end |