Module: LogStash::PluginMixins::Jdbc::TimezoneProxy::JDBCTimezoneSpecValidator
- Defined in:
- lib/logstash/plugin_mixins/jdbc/timezone_proxy.rb
Instance Method Summary collapse
Instance Method Details
#validate_value(value, validator_name) ⇒ Object
41 42 43 44 45 |
# File 'lib/logstash/plugin_mixins/jdbc/timezone_proxy.rb', line 41 def validate_value(value, validator_name) return super(value, validator_name) unless validator_name == :jdbc_timezone_spec [true, TimezoneProxy.load(value)] rescue [false, $!.] end |