Class: Barkdog::DSL::Context::Monitor
- Inherits:
-
Object
- Object
- Barkdog::DSL::Context::Monitor
- Includes:
- TemplateHelper
- Defined in:
- lib/barkdog/dsl/context/monitor.rb
Defined Under Namespace
Classes: Options
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(context, name, &block) ⇒ Monitor
constructor
A new instance of Monitor.
Methods included from TemplateHelper
Constructor Details
#initialize(context, name, &block) ⇒ Monitor
Returns a new instance of Monitor.
4 5 6 7 8 9 |
# File 'lib/barkdog/dsl/context/monitor.rb', line 4 def initialize(context, name, &block) @monitor_name = name @context = context.merge(:monitor_name => name) @result = {} instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
11 12 13 |
# File 'lib/barkdog/dsl/context/monitor.rb', line 11 def result @result end |