Class: RubyScriptExporter::Service::Builder
- Inherits:
-
Object
- Object
- RubyScriptExporter::Service::Builder
- Defined in:
- lib/ruby_script_exporter/service.rb
Instance Attribute Summary collapse
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
-
#initialize(name) ⇒ Builder
constructor
A new instance of Builder.
- #label(key, value) ⇒ Object
- #probe(name, &block) ⇒ Object
Constructor Details
Instance Attribute Details
#service ⇒ Object (readonly)
Returns the value of attribute service.
25 26 27 |
# File 'lib/ruby_script_exporter/service.rb', line 25 def service @service end |
Instance Method Details
#label(key, value) ⇒ Object
31 32 33 |
# File 'lib/ruby_script_exporter/service.rb', line 31 def label(key, value) @service.labels[key] = value end |