Method: MQTT::Packet::Connect#inspect

Defined in:
lib/mqtt/packet.rb

#inspectObject

Returns a human readable string, summarising the properties of the packet



531
532
533
534
535
536
537
538
539
# File 'lib/mqtt/packet.rb', line 531

def inspect
  str = "\#<#{self.class}: " \
        "keep_alive=#{keep_alive}"
  str += ', clean' if clean_session
  str += ", client_id='#{client_id}'"
  str += ", username='#{username}'" unless username.nil?
  str += ', password=...' unless password.nil?
  str + '>'
end