class LogStash::Outputs::Gcs::PathFactoryBuilder

PathFactoryBuilder makes the long PathFactory constructor chain more readable.

Public Class Methods

build() { |builder| ... } click to toggle source
# File lib/logstash/outputs/gcs/path_factory.rb, line 99
def self.build
  builder = new
  yield builder
  builder.build_path_factory
end
builder_setter(*names) click to toggle source
# File lib/logstash/outputs/gcs/path_factory.rb, line 105
def self.builder_setter(*names)
  names.each do |name|
    define_method("set_#{name}") {|arg| instance_variable_set("@#{name}", arg)}
  end
end

Public Instance Methods

build_path_factory() click to toggle source
# File lib/logstash/outputs/gcs/path_factory.rb, line 113
def build_path_factory
  PathFactory.new(@directory, @prefix, @include_host, @date_pattern, @include_part, @include_uuid, @is_gzipped)
end