Class: SAAL::Envoy::PowerEnergyUnderlying

Inherits:
SensorUnderlying show all
Defined in:
lib/envoy.rb

Instance Method Summary collapse

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