Class: Yabeda::Kafka::Proxy::Gauge
- Inherits:
-
Object
- Object
- Yabeda::Kafka::Proxy::Gauge
- Defined in:
- lib/yabeda/kafka/proxy.rb
Instance Attribute Summary collapse
-
#yabeda_gauge ⇒ Object
readonly
Returns the value of attribute yabeda_gauge.
Instance Method Summary collapse
-
#initialize(yabeda_gauge) ⇒ Gauge
constructor
A new instance of Gauge.
- #set(value, labels:) ⇒ Object
Constructor Details
#initialize(yabeda_gauge) ⇒ Gauge
Returns a new instance of Gauge.
68 69 70 |
# File 'lib/yabeda/kafka/proxy.rb', line 68 def initialize(yabeda_gauge) @yabeda_gauge = yabeda_gauge end |
Instance Attribute Details
#yabeda_gauge ⇒ Object (readonly)
Returns the value of attribute yabeda_gauge.
66 67 68 |
# File 'lib/yabeda/kafka/proxy.rb', line 66 def yabeda_gauge @yabeda_gauge end |
Instance Method Details
#set(value, labels:) ⇒ Object
72 73 74 |
# File 'lib/yabeda/kafka/proxy.rb', line 72 def set(value, labels:) yabeda_gauge.set(labels, value) end |