Sha256: 3e7dab41f3f0d9e010148c3f72548c2c2b9be544ab1e0572a3e87b546c1f26d5

Contents?: true

Size: 481 Bytes

Versions: 2

Compression:

Stored size: 481 Bytes

Contents

module IOSConfigProfile
  class RemoveDocPayload < Hash
    include IOSConfigProfile::BasicPayload

    attr_accessor :doc_url

    def initialize(doc_url)
      @doc_url = doc_url
      require_attributes :doc_url
      merge! install_doc_payload
    end

    private

    def install_doc_payload
      {
        "RequestType" => "RemoveMedia",
        "MediaType" => "Book",
        "PersistentID" => "#{IOSConfigProfile.root_domain}.files.#{doc_url}",
      }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ios_config_profile-1.4.1 lib/ios_config_profile/content/remove_doc_payload.rb
ios_config_profile-1.4.0 lib/ios_config_profile/content/remove_doc_payload.rb