Class: RZWaveWay::CommandClass

Inherits:
Object
  • Object
show all
Includes:
Logger, PropertiesCache
Defined in:
lib/rzwaveway/command_class.rb

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

Instance Method Summary collapse

Methods included from PropertiesCache

#save_properties, #to_hash

Methods included from Logger

#log

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

#deviceObject (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

#nameObject



32
33
34
# File 'lib/rzwaveway/command_class.rb', line 32

def name
  self.class.name.split('::').last
end

#to_sObject



36
37
38
# File 'lib/rzwaveway/command_class.rb', line 36

def to_s
  name
end