Class: RZWaveWay::CommandClass
- Inherits:
-
Object
- Object
- RZWaveWay::CommandClass
- Includes:
- Logger, PropertiesCache
- Defined in:
- lib/rzwaveway/command_class.rb
Direct Known Subclasses
RZWaveWay::CommandClasses::Alarm, RZWaveWay::CommandClasses::AlarmSensor, RZWaveWay::CommandClasses::Battery, RZWaveWay::CommandClasses::SensorBinary, RZWaveWay::CommandClasses::SwitchBinary, RZWaveWay::CommandClasses::SwitchMultiLevel, RZWaveWay::CommandClasses::WakeUp
Constant Summary collapse
- BASIC =
32
- SWITCH_BINARY =
37
- SWITCH_MULTI_LEVEL =
38
- SENSOR_BINARY =
48
- SENSOR_MULTI_LEVEL =
49
- METER =
50
- CONFIGURATION =
112
- ALARM =
113
- NOTIFICATION =
ALARM
- MANUFACTURER_SPECIFIC =
114
- BATTERY =
128
- WAKEUP =
132
- ASSOCIATION =
133
- VERSION =
134
- SECURITY =
152
- ALARM_SENSOR =
156
Instance Attribute Summary collapse
-
#device ⇒ Object
readonly
Returns the value of attribute device.
Instance Method Summary collapse
- #build_from(data) ⇒ Object
-
#initialize(device) ⇒ CommandClass
constructor
A new instance of CommandClass.
- #name ⇒ Object
- #to_s ⇒ Object
Methods included from PropertiesCache
Methods included from Logger
Constructor Details
#initialize(device) ⇒ CommandClass
Returns a new instance of CommandClass.
25 26 27 |
# File 'lib/rzwaveway/command_class.rb', line 25 def initialize(device) @device = device end |
Instance Attribute Details
#device ⇒ Object (readonly)
Returns the value of attribute device.
23 24 25 |
# File 'lib/rzwaveway/command_class.rb', line 23 def device @device end |
Instance Method Details
#build_from(data) ⇒ Object
29 30 |
# File 'lib/rzwaveway/command_class.rb', line 29 def build_from(data) end |
#name ⇒ Object
32 33 34 |
# File 'lib/rzwaveway/command_class.rb', line 32 def name self.class.name.split('::').last end |
#to_s ⇒ Object
36 37 38 |
# File 'lib/rzwaveway/command_class.rb', line 36 def to_s name end |