class IOSConfigProfile::RemoveDocPayload

Attributes

doc_url[RW]

Public Class Methods

new(doc_url) click to toggle source
# File lib/ios_config_profile/content/remove_doc_payload.rb, line 7
def initialize(doc_url)
  @doc_url = doc_url
  require_attributes :doc_url
  merge! install_doc_payload
end

Private Instance Methods

install_doc_payload() click to toggle source
# File lib/ios_config_profile/content/remove_doc_payload.rb, line 15
def install_doc_payload
  {
    "RequestType" => "RemoveMedia",
    "MediaType" => "Book",
    "PersistentID" => "#{IOSConfigProfile.root_domain}.files.#{doc_url}",
  }
end