Class: PromMultiProc::Proxy
- Inherits:
-
Object
- Object
- PromMultiProc::Proxy
- Defined in:
- lib/prom_multi_proc/proxy.rb
Instance Attribute Summary collapse
-
#multis ⇒ Object
readonly
Returns the value of attribute multis.
Instance Method Summary collapse
- #add_multi(collector, method, value, labels) ⇒ Object
-
#initialize(base) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
#initialize(base) ⇒ Proxy
5 6 7 8 9 10 11 |
# File 'lib/prom_multi_proc/proxy.rb', line 5 def initialize(base) @base = base @proxies = {} @multis = [] add_proxy_methods end |
Instance Attribute Details
#multis ⇒ Object (readonly)
Returns the value of attribute multis.
3 4 5 |
# File 'lib/prom_multi_proc/proxy.rb', line 3 def multis @multis end |
Instance Method Details
#add_multi(collector, method, value, labels) ⇒ Object
13 14 15 |
# File 'lib/prom_multi_proc/proxy.rb', line 13 def add_multi(collector, method, value, labels) @multis << [collector, method, value, labels] end |