Class: Fluent::S3Output::TextCompressor
- Inherits:
-
Compressor
- Object
- Compressor
- Fluent::S3Output::TextCompressor
- Defined in:
- lib/fluent/plugin/out_s3.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Compressor
Instance Method Summary collapse
Methods inherited from Compressor
Instance Method Details
#compress(chunk, tmp) ⇒ Object
206 207 208 209 |
# File 'lib/fluent/plugin/out_s3.rb', line 206 def compress(chunk, tmp) chunk.write_to(tmp) tmp.close end |
#content_type ⇒ Object
202 203 204 |
# File 'lib/fluent/plugin/out_s3.rb', line 202 def content_type 'text/plain'.freeze end |
#ext ⇒ Object
198 199 200 |
# File 'lib/fluent/plugin/out_s3.rb', line 198 def ext 'txt'.freeze end |