class Jamf::ManagementHistory::Ebook

Ebook - an app deployed to a MobileDevice

This should only be instantiated by the ManagementHistory.ebooks method when mixed in to Mobile devices.

That method will return an array of these objects.

NOTE: some attributes will be nil for some statuses (e.g. no source data if not installed)

Public Instance Methods

managed?() click to toggle source

@return [Boolean] If :installed and :in_house, is it managed?

   # File lib/jamf/api/classic/api_objects/management_history/ebook.rb
88 def managed?
89   @management_status == HIST_RAW_STATUS_MANAGED
90 end
status() click to toggle source

@return [Symbol] :installed, :pending, :failed, or :unknown

   # File lib/jamf/api/classic/api_objects/management_history/ebook.rb
75 def status
76   case @management_status
77   when HIST_RAW_STATUS_INSTALLED then :installed
78   when HIST_RAW_STATUS_MANAGED then :installed
79   when HIST_RAW_STATUS_UNMANAGED then :installed
80   when HIST_RAW_STATUS_PENDING then :pending
81   when HIST_RAW_STATUS_FAILED then :failed
82   else :unknown
83   end
84 end