Method: MTP::Properties#get_value

Defined in:
lib/mtp/properties.rb

#get_value(code) ⇒ Object



27
28
29
30
31
# File 'lib/mtp/properties.rb', line 27

def get_value(code)
  code = Property.code(code)
  raise UnsupportedProperty.new(@object, code)  unless supports?(code)
  Property.get(@object, code)
end