Class: SimpleMDM::InstalledApp
- Defined in:
- lib/simplemdm/installed_app.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
Class Method Details
.find(id) ⇒ Object
4 5 6 7 8 |
# File 'lib/simplemdm/installed_app.rb', line 4 def self.find(id) hash, code = fetch("installed_apps/#{id}") build hash['data'] end |
Instance Method Details
#uninstall ⇒ Object
10 11 12 13 14 15 16 |
# 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 |