Module: Ansible::ZWave::ValueType_String

Defined in:
lib/ansible/zwave/openzwave/types/valuetype_string.rb

Overview

string value type for OpenZWave

Instance Method Summary collapse

Instance Method Details

#as_canonical_valueObject



42
43
44
45
# File 'lib/ansible/zwave/openzwave/types/valuetype_string.rb', line 42

def as_canonical_value()
    puts 'TODO:: zwave_string: as_canonical'
    return (current_value)
end

#explainObject

return a human-readable representation of a ZWave frame



55
56
# File 'lib/ansible/zwave/openzwave/types/valuetype_string.rb', line 55

def explain
end

#read_operationObject

define type-specific OZW::Manager API calls



33
34
35
# File 'lib/ansible/zwave/openzwave/types/valuetype_string.rb', line 33

def read_operation 
    return :GetValueAsString
end

#to_protocol_value(new_val) ⇒ Object



48
49
50
51
52
# File 'lib/ansible/zwave/openzwave/types/valuetype_string.rb', line 48

def to_protocol_value(new_val)
    puts 'TODO:: zwave_string: to_protocol'
    result = nil
    result = new_val.to_s if [TrueClass, FalseClass].include?(new_val.class) 
end

#write_operationObject



37
38
39
# File 'lib/ansible/zwave/openzwave/types/valuetype_string.rb', line 37

def write_operation 
    return :SetValue_String
end