Class: Zabbirc::Configuration
- Inherits:
-
Object
- Object
- Zabbirc::Configuration
- Includes:
- ActiveSupport::Configurable
- Defined in:
- lib/zabbirc/configuration.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#default_events_priority ⇒ Object
39 40 41 |
# File 'lib/zabbirc/configuration.rb', line 39 def default_events_priority config.default_events_priority end |
#default_events_priority=(value) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/zabbirc/configuration.rb', line 31 def default_events_priority= value allowed_priorities = Priority::PRIORITIES.values unless allowed_priorities.include? value raise ArgumentError, "Unexpected value in config file. default_events_priority can be one of `#{allowed_priorities.collect(&:inspect).join(", ")}` but `#{value.inspect}` was stated" end config.default_events_priority = value end |
#param_name ⇒ Object
27 28 29 |
# File 'lib/zabbirc/configuration.rb', line 27 def param_name config.param_name.respond_to?(:call) ? config.param_name.call : config.param_name end |