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 61


#kindString (readonly)



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


#management_statusString (readonly)



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


#sourceSymbol (readonly)



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


#titleString (readonly) Also known as: name



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

alias name title

#versionString (readonly)



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


Instance Method Details

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

#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

#statusSymbol



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