Method: MTP::Object#dump_properties

Defined in:
lib/mtp/object.rb

#dump_propertiesObject



73
74
75
76
77
78
79
# File 'lib/mtp/object.rb', line 73

def dump_properties
  puts "0x%04x:%16s: %64s %s" % [ 0, "id", @id, "ro" ]
  properties.supported.each do |property|
    p = properties.get_value(property)
    puts "0x%04x:%16s: %64s %s" % [ p.code.to_i, property, p.value, (p.writable? ? 'rw' : 'ro') ]
  end
end