Exception: PulseMeter::BadSensorName

Inherits:
SensorError
  • Object
show all
Defined in:
lib/pulse-meter/sensor.rb

Overview

Exception to be raised when sensor name is malformed

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ BadSensorName

Returns a new instance of BadSensorName.



27
28
29
# File 'lib/pulse-meter/sensor.rb', line 27

def initialize(name, options = {})
  super("Bad sensor name: `#{name}', only a-z letters and _ are allowed")
end