Module: Ansible::ZWave::ValueType_List
- Defined in:
- lib/ansible/zwave/openzwave/types/valuetype_list.rb
Overview
list value type for OpenZWave
Instance Method Summary collapse
- #as_canonical_value ⇒ Object
-
#explain ⇒ Object
return a human-readable representation of a ZWave frame.
-
#read_operation ⇒ Object
define type-specific OZW::Manager API calls.
- #to_protocol_value(new_val) ⇒ Object
- #write_operation ⇒ Object
Instance Method Details
#as_canonical_value ⇒ Object
45 46 47 |
# File 'lib/ansible/zwave/openzwave/types/valuetype_list.rb', line 45 def as_canonical_value() puts 'TODO' end |
#explain ⇒ Object
return a human-readable representation of a ZWave frame
58 59 |
# File 'lib/ansible/zwave/openzwave/types/valuetype_list.rb', line 58 def explain end |
#read_operation ⇒ Object
define type-specific OZW::Manager API calls
34 35 36 37 |
# File 'lib/ansible/zwave/openzwave/types/valuetype_list.rb', line 34 def read_operation raise 'FIXME' return :GetValueListItems end |
#to_protocol_value(new_val) ⇒ Object
50 51 52 53 54 55 |
# File 'lib/ansible/zwave/openzwave/types/valuetype_list.rb', line 50 def to_protocol_value(new_val) result = nil if [TrueClass, FalseClass].include?(new_val.class) result = new_val ? 1 : 0 end end |
#write_operation ⇒ Object
39 40 41 42 |
# File 'lib/ansible/zwave/openzwave/types/valuetype_list.rb', line 39 def write_operation raise 'FIXME' return :SetValueListSelection end |