Exception: PulseMeter::BadSensorName
- Inherits:
-
SensorError
- Object
- StandardError
- SensorError
- PulseMeter::BadSensorName
- Defined in:
- lib/pulse-meter/sensor.rb
Overview
Exception to be raised when sensor name is malformed
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ BadSensorName
constructor
A new instance of BadSensorName.
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, = {}) super("Bad sensor name: `#{name}', only a-z letters and _ are allowed") end |