Method: MQTT::Homie::Property#inspect

Defined in:
lib/mqtt/homie/property.rb

#inspectObject



47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/mqtt/homie/property.rb', line 47

def inspect
  result = +"#<MQTT::Homie::Property #{topic} name=#{full_name.inspect}, datatype=#{datatype.inspect}"
  result << ", format=#{format.inspect}" if format
  result << ", unit=#{unit.inspect}" if unit
  result << ", settable=true" if settable?
  result << if retained?
              ", value=#{value.inspect}"
            else
              ", retained=false"
            end
  result << ">"
  result.freeze
end