Class: JSS::ManagementHistory::EBook

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#authorString (readonly)


# File 'lib/jss/api_object/management_history/ebook.rb', line 36


#kindString (readonly)


# File 'lib/jss/api_object/management_history/ebook.rb', line 39


#management_statusString (readonly)


# File 'lib/jss/api_object/management_history/ebook.rb', line 42


#sourceSymbol (readonly)


# File 'lib/jss/api_object/management_history/ebook.rb', line 45


#titleString (readonly) Also known as: name


31
# File 'lib/jss/api_object/management_history/ebook.rb', line 31

alias name title

#versionString (readonly)


# File 'lib/jss/api_object/management_history/ebook.rb', line 33


Instance Method Details

#[](attr) ⇒ Object Originally defined in module HashLike

#managed?Boolean

@return [Boolean] If :installed and :in_house, is it managed?


63
64
65
# File 'lib/jss/api_object/management_history/ebook.rb', line 63

def managed?
  @management_status == HIST_RAW_STATUS_MANAGED
end

#statusSymbol


50
51
52
53
54
55
56
57
58
59
# File 'lib/jss/api_object/management_history/ebook.rb', line 50

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