Module: Validator::ProgrammingHelpers
- Defined in:
- spec/support/programming_helpers.rb
Instance Method Summary collapse
Instance Method Details
#find_alarm_programming(alarm_code_id) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'spec/support/programming_helpers.rb', line 2 def find_alarm_programming alarm_code_id action = Validator.config.dig('inputs','programming') skip "Alarm #{alarm_code_id} is not configured" unless action action = action.find do |input,| ['raise_alarm'] == alarm_code_id end skip "Alarm #{alarm_code_id} is not configured" unless action input = action.first component_id = action.last['component'] return input, component_id end |