Class: JSS::ManagementHistory::EBook
- Includes:
- HashLike
- Defined in:
- lib/jss/api_object/management_history/ebook.rb
Overview
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)
Instance Attribute Summary collapse
-
#author ⇒ String
readonly
The author of the ebook.
-
#kind ⇒ String
readonly
'IBOOK', 'PDF', etc..
-
#management_status ⇒ String
readonly
The raw status, used for #managed? and #status.
-
#source ⇒ Symbol
readonly
:in_house or :ibookstore.
-
#title ⇒ String
(also: #name)
readonly
The name of the ebook.
-
#version ⇒ String
readonly
The version of the ebook.
Instance Method Summary collapse
- #[](attr) ⇒ Object included from HashLike
-
#managed? ⇒ Boolean
@return [Boolean] If :installed and :in_house, is it managed?.
-
#status ⇒ Symbol
:installed, :pending, :failed, or :unknown.
Instance Attribute Details
#author ⇒ String (readonly)
Returns The author of the ebook.
|
# File 'lib/jss/api_object/management_history/ebook.rb', line 61
|
#kind ⇒ String (readonly)
Returns 'IBOOK', 'PDF', etc..
|
# File 'lib/jss/api_object/management_history/ebook.rb', line 64
|
#management_status ⇒ String (readonly)
Returns The raw status, used for #managed? and #status.
|
# File 'lib/jss/api_object/management_history/ebook.rb', line 67
|
#source ⇒ Symbol (readonly)
Returns :in_house or :ibookstore.
|
# File 'lib/jss/api_object/management_history/ebook.rb', line 70
|
#title ⇒ String (readonly) Also known as: name
Returns The name of the ebook.
56 |
# File 'lib/jss/api_object/management_history/ebook.rb', line 56 alias name title |
#version ⇒ String (readonly)
Returns The version of the ebook.
|
# File 'lib/jss/api_object/management_history/ebook.rb', line 58
|
Instance Method Details
#managed? ⇒ Boolean
@return [Boolean] If :installed and :in_house, is it managed?
88 89 90 |
# File 'lib/jss/api_object/management_history/ebook.rb', line 88 def managed? @management_status == HIST_RAW_STATUS_MANAGED end |
#status ⇒ Symbol
Returns :installed, :pending, :failed, or :unknown.
75 76 77 78 79 80 81 82 83 84 |
# File 'lib/jss/api_object/management_history/ebook.rb', line 75 def status case @management_status when HIST_RAW_STATUS_INSTALLED then :installed when HIST_RAW_STATUS_MANAGED then :installed when HIST_RAW_STATUS_UNMANAGED then :installed when HIST_RAW_STATUS_PENDING then :pending when HIST_RAW_STATUS_FAILED then :failed else :unknown end end |