Class: MonitorFactory
- Inherits:
-
Object
- Object
- MonitorFactory
- Defined in:
- lib/monitor_agent.rb
Class Method Summary collapse
Class Method Details
.build(role, host, token) ⇒ Object
60 61 62 |
# File 'lib/monitor_agent.rb', line 60 def self.build(role, host, token) Object.const_get("#{role.camel_case}Monitor").new(host, token) end |