Sha256: 085b4b96b7b405656637121176edfcf65bd4a6da426f94985fd0a4aefa841bc7

Contents?: true

Size: 941 Bytes

Versions: 1

Compression:

Stored size: 941 Bytes

Contents

#
module JSS

  #
  module ManagementHistory

    # CasperRemoteEvent - an casper remote event in a Jamf Computer's Management History
    #
    # This should only be instantiated by the ManagementHistory.usage_logs method
    # when mixed in to Computers devices.
    #
    # That method will return an array of these objects.
    #
    class CasperRemoteLog < 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_remote_log.rb