Class: LogStash::Outputs::Swift::FileRepository::FactoryInitializer
- Inherits:
-
Object
- Object
- LogStash::Outputs::Swift::FileRepository::FactoryInitializer
- Defined in:
- lib/logstash/outputs/swift/file_repository.rb
Instance Method Summary collapse
- #apply(prefix_key) ⇒ Object
-
#initialize(tags, encoding, temporary_directory, stale_time) ⇒ FactoryInitializer
constructor
A new instance of FactoryInitializer.
Constructor Details
#initialize(tags, encoding, temporary_directory, stale_time) ⇒ FactoryInitializer
Returns a new instance of FactoryInitializer.
45 46 47 48 49 50 |
# File 'lib/logstash/outputs/swift/file_repository.rb', line 45 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
52 53 54 |
# File 'lib/logstash/outputs/swift/file_repository.rb', line 52 def apply(prefix_key) PrefixedValue.new(TemporaryFileFactory.new(prefix_key, @tags, @encoding, @temporary_directory), @stale_time) end |