Class: SAAL::Envoy::PowerEnergyUnderlying
- Inherits:
-
SensorUnderlying
- Object
- SensorUnderlying
- SAAL::Envoy::PowerEnergyUnderlying
- Defined in:
- lib/envoy.rb
Instance Method Summary collapse
-
#initialize(key, production) ⇒ PowerEnergyUnderlying
constructor
A new instance of PowerEnergyUnderlying.
- #read(uncached = false) ⇒ Object
Methods inherited from SensorUnderlying
#sensor_type, writeable!, #writeable?
Constructor Details
#initialize(key, production) ⇒ PowerEnergyUnderlying
Returns a new instance of PowerEnergyUnderlying.
6 7 8 9 |
# File 'lib/envoy.rb', line 6 def initialize(key, production) @key = key @production = production end |
Instance Method Details
#read(uncached = false) ⇒ Object
11 12 13 |
# File 'lib/envoy.rb', line 11 def read(uncached = false) @production.read_val(@key) end |