class SimpleMDM::InstalledApp
Public Class Methods
find(id)
click to toggle source
# File lib/simplemdm/installed_app.rb, line 4 def self.find(id) hash, code = fetch("installed_apps/#{id}") build hash['data'] end
Public Instance Methods
uninstall()
click to toggle source
# File lib/simplemdm/installed_app.rb, line 10 def uninstall raise "You cannot uninstall an unmanaged app" if !self.managed hash, code = fetch("installed_apps/#{id}", :delete) code == 202 end