Class: Fluent::GCS::ObjectCreator

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/plugin/gcs/object_creator.rb

Instance Method Summary collapse

Instance Method Details

#content_encodingObject



30
31
32
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 30

def content_encoding
  nil
end

#content_typeObject

Raises:

  • (NotImplementedError)


26
27
28
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 26

def content_type
  raise NotImplementedError
end

#create(chunk, &block) ⇒ Object



42
43
44
45
46
47
48
49
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 42

def create(chunk, &block)
  Tempfile.create("fluent-plugin-gcs") do |f|
    f.binmode
    f.sync = true
    write(chunk, f)
    block.call(f)
  end
end

#file_extensionObject

Raises:

  • (NotImplementedError)


34
35
36
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 34

def file_extension
  raise NotImplementedError
end

#write(chunk, io) ⇒ Object

Raises:

  • (NotImplementedError)


38
39
40
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 38

def write(chunk, io)
  raise NotImplementedError
end