Class: LogStash::PluginMixins::Jdbc::TimezoneProxy::PeriodForLocalWithDSTPreference Private

Inherits:
Module
  • Object
show all
Defined in:
lib/logstash/plugin_mixins/jdbc/timezone_proxy.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Constant Summary collapse

ON =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

new(true)
OFF =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

new(false)

Instance Method Summary collapse

Constructor Details

#initialize(default_dst_enabled_on_overlap) ⇒ PeriodForLocalWithDSTPreference

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of PeriodForLocalWithDSTPreference.



51
52
53
54
55
# File 'lib/logstash/plugin_mixins/jdbc/timezone_proxy.rb', line 51

def initialize(default_dst_enabled_on_overlap)
  define_method(:period_for_local) do |localtime, dst_enabled_on_overlap=nil, &dismabiguation_block|
    super(localtime, dst_enabled_on_overlap.nil? ? default_dst_enabled_on_overlap : dst_enabled_on_overlap, &dismabiguation_block)
  end
end