Sha256: 60a470a866cc06b805b5848d36c108d190ef645b970ffd1abf6116394c62b5b2

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

require_relative '../model'
module Spaceship
  class ConnectAPI
    class IdfaDeclaration
      include Spaceship::ConnectAPI::Model

      attr_accessor :serves_ads
      attr_accessor :attributes_app_installation_to_previous_ad
      attr_accessor :attributes_action_with_previous_ad
      attr_accessor :honors_limited_ad_tracking

      module AppStoreAgeRating
        FOUR_PLUS = "FOUR_PLUS"
      end

      attr_mapping({
        "servesAds" => "serves_ads",
        "attributesAppInstallationToPreviousAd" => "attributes_app_installation_to_previous_ad",
        "attributesActionWithPreviousAd" => "attributes_action_with_previous_ad",
        "honorsLimitedAdTracking" => "honors_limited_ad_tracking"
      })

      def self.type
        return "idfaDeclarations"
      end

      #
      # API
      #

      def update(attributes: nil)
        attributes = reverse_attr_mapping(attributes)
        Spaceship::ConnectAPI.patch_idfa_declaration(idfa_declaration_id: id, attributes: attributes)
      end

      def delete!
        Spaceship::ConnectAPI.delete_idfa_declaration(idfa_declaration_id: id)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane_hotfix-2.165.0 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb