Sha256: 1dd44bf00fd7c00c3235e02c387b34d5cd1dae92380ca93899b91a817eef1e39

Contents?: true

Size: 950 Bytes

Versions: 1

Compression:

Stored size: 950 Bytes

Contents

#
module JSS

  #
  module ManagementHistory

    # CasperImagingLog - a casper imaging event in a Jamf Computer's Management History
    #
    # This should only be instantiated by the ManagementHistory.casper_imaging_logs method
    # when mixed in to Computers devices.
    #
    # That method will return an array of these objects.
    #
    class CasperImagingLog < ImmutableStruct.new(

      :status,
      :date_time_epoch
    )

      # @!attribute [r] status
      #  @return [String] The status of the event.

      # @!attribute [r] date_time_epoch
      #  @return [Integer] When the event occured on the server, as
      #    a unix epoch timestamp with milliseconds

      #  @return [Time] When the event occured on the server, as a ruby Time object
      #
      def date_time
        JSS.epoch_to_time @date_time_epoch if @date_time_epoch
      end

    end # CasperRemoteEvent

  end #   module ManagementHistory

end # module JSS

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-jss-0.11.0a5 lib/jss/api_object/management_history/casper_imaging_log.rb