Sha256: f1b056f2d09d6fb54d2ba38c30c37071a6baccbb43fc4e5cce9bdb13db98ec2b

Contents?: true

Size: 524 Bytes

Versions: 3

Compression:

Stored size: 524 Bytes

Contents

module IOSConfigProfile
  class InstallApplicationPayload < Hash
    include IOSConfigProfile::BasicPayload

    attr_accessor :itunes_store_id

    def initialize(itunes_store_id)
      self.itunes_store_id = itunes_store_id
      require_attributes :itunes_store_id
      merge! install_application_payload
    end

    private

    def install_application_payload
      {
        "RequestType" => "InstallApplication",
        "iTunesStoreID" => itunes_store_id,
        "ManagementFlags" => 1,
      }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ios_config_profile-1.4.1 lib/ios_config_profile/content/install_application_payload.rb
ios_config_profile-1.4.0 lib/ios_config_profile/content/install_application_payload.rb
ios_config_profile-1.3.0 lib/ios_config_profile/content/install_application_payload.rb