Class: LogStash::Outputs::LogstashAzureBlobOutput::FileRepository::FactoryInitializer
- Inherits:
-
Object
- Object
- LogStash::Outputs::LogstashAzureBlobOutput::FileRepository::FactoryInitializer
- Defined in:
- lib/logstash/outputs/blob/file_repository.rb
Overview
class for initializing the repo manager
Instance Method Summary collapse
-
#apply(prefix_key) ⇒ Object
applies the prefix key.
-
#initialize(tags, encoding, temporary_directory, stale_time) ⇒ FactoryInitializer
constructor
initializes the class.
Constructor Details
#initialize(tags, encoding, temporary_directory, stale_time) ⇒ FactoryInitializer
initializes the class
53 54 55 56 57 58 |
# File 'lib/logstash/outputs/blob/file_repository.rb', line 53 def initialize(, encoding, temporary_directory, stale_time) @tags = @encoding = encoding @temporary_directory = temporary_directory @stale_time = stale_time end |
Instance Method Details
#apply(prefix_key) ⇒ Object
applies the prefix key
61 62 63 |
# File 'lib/logstash/outputs/blob/file_repository.rb', line 61 def apply(prefix_key) PrefixedValue.new(TemporaryFileFactory.new(prefix_key, @tags, @encoding, @temporary_directory), @stale_time) end |