Class: Fluent::Plugin::AzureStorageGen2Output::TextCompressor

Inherits:
Compressor
  • Object
show all
Defined in:
lib/fluent/plugin/out_azurestorage_gen2.rb

Direct Known Subclasses

JsonCompressor

Instance Attribute Summary

Attributes inherited from Compressor

#buffer_type, #log

Instance Method Summary collapse

Methods inherited from Compressor

#configure, #initialize

Constructor Details

This class inherits a constructor from Fluent::Plugin::AzureStorageGen2Output::Compressor

Instance Method Details

#compress(chunk, tmp) ⇒ Object



591
592
593
# File 'lib/fluent/plugin/out_azurestorage_gen2.rb', line 591

def compress(chunk, tmp)
  chunk.write_to(tmp)
end

#content_typeObject



587
588
589
# File 'lib/fluent/plugin/out_azurestorage_gen2.rb', line 587

def content_type
  'text/plain'.freeze
end

#extObject



583
584
585
# File 'lib/fluent/plugin/out_azurestorage_gen2.rb', line 583

def ext
  'txt'.freeze
end