class Jamf::ManagementHistory::PolicyLog
PolicyLog
- A Computer
policy log history entry
This should only be instantiated by the ManagementHistory.policy_logs
method when mixed in to Computers.
That method will return an array of these objects.
Public Class Methods
new(**args)
click to toggle source
Calls superclass method
# File lib/jamf/api/classic/api_objects/management_history/policy_log.rb 48 def initialize(**args) 49 # we want the status as a Symbol 50 args[:status] &&= args[:status].downcase.to_sym 51 super 52 end
Public Instance Methods
date_completed()
click to toggle source
@return [Time] When the policy completed, as a ruby
Time object
# File lib/jamf/api/classic/api_objects/management_history/policy_log.rb 76 def date_completed 77 JSS.epoch_to_time(@date_completed_epoch) if @date_completed_epoch 78 end
Also aliased as: completed