Class: JSS::ManagementHistory::MacAppStoreApp
- Includes:
- HashLike
- Defined in:
- lib/jss/api_object/management_history/mac_app_store_app.rb
Overview
MacAppStoreApp - an app store app deployed to a Computer
This should only be instantiated by the ManagementHistory.app_store_app_history method when mixed in to Computers.
That method will return an array of these objects.
NOTE: some attributes will be nil for some statuses (e.g. no size data if not installed)
Instance Attribute Summary collapse
-
#deployed_epoch ⇒ Integer
readonly
a unix epoch timestamp with milliseconds.
-
#last_update_epoch ⇒ Integer
(also: #last_push_epoch)
readonly
install it, as a unix epoch timestamp with milliseconds.
-
#name ⇒ String
readonly
The name of the app.
-
#size_mb ⇒ Integer
readonly
If :installed, its size in Mb.
-
#status ⇒ Symbol
readonly
:installed, :pending, or :failed.
-
#version ⇒ String
readonly
The version of the app.
Instance Method Summary collapse
- #[](attr) ⇒ Object included from HashLike
-
#deployed ⇒ Time
If :pending, when was it first deployed as as a ruby Time object.
-
#last_update ⇒ Time
(also: #last_push)
If :pending, when as the last attempt to install it, as a ruby Time object.
Instance Attribute Details
#deployed_epoch ⇒ Integer (readonly)
a unix epoch timestamp with milliseconds
|
# File 'lib/jss/api_object/management_history/mac_app_store_app.rb', line 61
|
#last_update_epoch ⇒ Integer (readonly) Also known as: last_push_epoch
install it, as a unix epoch timestamp with milliseconds
69 |
# File 'lib/jss/api_object/management_history/mac_app_store_app.rb', line 69 alias last_push_epoch last_update_epoch |
#name ⇒ String (readonly)
Returns the name of the app.
|
# File 'lib/jss/api_object/management_history/mac_app_store_app.rb', line 52
|
#size_mb ⇒ Integer (readonly)
Returns If :installed, its size in Mb.
|
# File 'lib/jss/api_object/management_history/mac_app_store_app.rb', line 71
|
#status ⇒ Symbol (readonly)
Returns :installed, :pending, or :failed.
|
# File 'lib/jss/api_object/management_history/mac_app_store_app.rb', line 58
|
#version ⇒ String (readonly)
Returns The version of the app.
|
# File 'lib/jss/api_object/management_history/mac_app_store_app.rb', line 55
|
Instance Method Details
#deployed ⇒ Time
Returns If :pending, when was it first deployed as as a ruby Time object.
77 78 79 |
# File 'lib/jss/api_object/management_history/mac_app_store_app.rb', line 77 def deployed JSS.epoch_to_time @deployed_epoch if @deployed_epoch end |
#last_update ⇒ Time Also known as: last_push
Returns If :pending, when as the last attempt to install it, as a ruby Time object.
85 86 87 |
# File 'lib/jss/api_object/management_history/mac_app_store_app.rb', line 85 def last_update JSS.epoch_to_time @last_update_epoch if @last_update_epoch end |