Class: Fluent::Plugin::S3Input::TextExtractor

Inherits:
Extractor
  • Object
show all
Defined in:
lib/fluent/plugin/in_s3.rb

Direct Known Subclasses

JsonExtractor

Instance Attribute Summary

Attributes inherited from Extractor

#log

Instance Method Summary collapse

Methods inherited from Extractor

#configure, #initialize

Constructor Details

This class inherits a constructor from Fluent::Plugin::S3Input::Extractor

Instance Method Details

#content_typeObject



335
336
337
# File 'lib/fluent/plugin/in_s3.rb', line 335

def content_type
  'text/plain'.freeze
end

#extObject



331
332
333
# File 'lib/fluent/plugin/in_s3.rb', line 331

def ext
  'txt'.freeze
end

#extract(io) ⇒ Object



339
340
341
# File 'lib/fluent/plugin/in_s3.rb', line 339

def extract(io)
  io.read
end