Sha256: d13b87dcf40d15e60299e1a728beb0c8664ff1a52393a178a22147487c161973

Contents?: true

Size: 1.19 KB

Versions: 81

Compression:

Stored size: 1.19 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(client: nil, attributes: nil)
        client ||= Spaceship::ConnectAPI
        attributes = reverse_attr_mapping(attributes)
        client.patch_idfa_declaration(idfa_declaration_id: id, attributes: attributes)
      end

      def delete!(client: nil)
        client ||= Spaceship::ConnectAPI
        client.delete_idfa_declaration(idfa_declaration_id: id)
      end
    end
  end
end

Version data entries

81 entries across 81 versions & 4 rubygems

Version Path
fastlane-2.221.0 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-2.220.0 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-2.219.0 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-2.218.0 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-security-patched-2.216.0 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-2.217.0 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-2.216.0 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-2.215.1 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-2.215.0 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-mercafacil-2.214.0 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-2.214.0 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-2.213.0 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-2.212.2 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane_pricing_fix-2.212.1 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-2.212.1 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-2.212.0 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-2.211.0 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-2.210.1 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-2.210.0 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
fastlane-2.209.1 spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb