Class: Fluent::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::S3Input::Extractor

Instance Method Details

#content_typeObject



284
285
286
# File 'lib/fluent/plugin/in_s3.rb', line 284

def content_type
  'text/plain'.freeze
end

#extObject



280
281
282
# File 'lib/fluent/plugin/in_s3.rb', line 280

def ext
  'txt'.freeze
end

#extract(io) ⇒ Object



288
289
290
# File 'lib/fluent/plugin/in_s3.rb', line 288

def extract(io)
  io.read
end