Class: LogStash::Setting::DeprecatedAndRenamed
- Inherits:
-
DeprecatedSetting
- Object
- LogStash::Setting
- DeprecatedSetting
- LogStash::Setting::DeprecatedAndRenamed
- Defined in:
- lib/logstash/settings.rb
Overview
Useful when a setting has been renamed but otherwise is semantically identical
Instance Attribute Summary collapse
-
#new_name ⇒ Object
readonly
Returns the value of attribute new_name.
Attributes inherited from LogStash::Setting
Instance Method Summary collapse
-
#initialize(name, new_name) ⇒ DeprecatedAndRenamed
constructor
A new instance of DeprecatedAndRenamed.
Methods inherited from DeprecatedSetting
Methods inherited from LogStash::Setting
#==, #reset, #set, #set?, #strict?, #to_hash, #validate_value, #value
Constructor Details
#initialize(name, new_name) ⇒ DeprecatedAndRenamed
Returns a new instance of DeprecatedAndRenamed.
650 651 652 653 |
# File 'lib/logstash/settings.rb', line 650 def initialize(name, new_name) super(name, "please update your configuration to use `#{new_name}` instead.") @new_name = new_name end |
Instance Attribute Details
#new_name ⇒ Object (readonly)
Returns the value of attribute new_name.
649 650 651 |
# File 'lib/logstash/settings.rb', line 649 def new_name @new_name end |