class MokiRuby::DeviceManagedApp

Attributes

app_identifier[RW]
management_flags[RW]
status[RW]

Public Class Methods

from_hash(input_hash) click to toggle source
# File lib/moki_ruby/device_managed_app.rb, line 5
def self.from_hash(input_hash)
  new_app = self.new
  new_app.status = input_hash['Status']
  new_app.app_identifier = input_hash['appIdentifier']
  new_app.management_flags = input_hash['ManagementFlags']

  new_app
end

Public Instance Methods

to_hash() click to toggle source
# File lib/moki_ruby/device_managed_app.rb, line 14
def to_hash
  {
    "Status" => self.status,
    "appIdentifier" => self.app_identifier,
    "ManagementFlags" => self.management_flags
  }
end
uninstall_hash() click to toggle source
# File lib/moki_ruby/device_managed_app.rb, line 22
def uninstall_hash
  {
    "action" => "remove_app",
    "thirdPartyUser" => "moki_ruby",
    "clientName" => "MokiRuby",
    "itemName" => "iOS App",
    "notify" => true,
    "payload" => self.app_identifier
  }
end