Class: WatchList::DSL::Converter
- Inherits:
-
Object
- Object
- WatchList::DSL::Converter
- Defined in:
- lib/watch_list/dsl/converter.rb
Constant Summary collapse
- TYPE_ATTRS =
[ :SubType, :Port, :KeywordType, :KeywordValue, :HTTPUsername, :HTTPPassword, ]
Class Method Summary collapse
Instance Method Summary collapse
- #convert ⇒ Object
-
#initialize(exported, options = {}) ⇒ Converter
constructor
of class methods.
Constructor Details
#initialize(exported, options = {}) ⇒ Converter
of class methods
17 18 19 20 |
# File 'lib/watch_list/dsl/converter.rb', line 17 def initialize(exported, = {}) @exported = exported @options = end |
Class Method Details
.convert(exported, opts = {}) ⇒ Object
12 13 14 |
# File 'lib/watch_list/dsl/converter.rb', line 12 def convert(exported, opts = {}) self.new(exported, opts).convert end |
Instance Method Details
#convert ⇒ Object
22 23 24 25 26 27 |
# File 'lib/watch_list/dsl/converter.rb', line 22 def convert [ output_monitors(@exported[:monitors]), output_alert_contacts(@exported[:alert_contacts]), ].join("\n\n") end |