Sha256: c2c5ac8ef7e5175f00ff43c105e3fc185a7571e720388e34e77d8be51253358f

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

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

      attr_accessor :locale
      attr_accessor :name
      attr_accessor :subtitle
      attr_accessor :privacy_policy_url
      attr_accessor :privacy_policy_text

      attr_mapping({
        "locale" => "locale",
        "name" => "name",
        "subtitle" => "subtitle",
        "privacyPolicyUrl" => "privacy_policy_url",
        "privacyPolicyText" => "privacy_policy_text"
      })

      def self.type
        return "appInfoLocalizations"
      end

      #
      # API
      #

      def update(attributes: nil)
        attributes = reverse_attr_mapping(attributes)
        Spaceship::ConnectAPI.patch_app_info_localization(app_info_localization_id: id, attributes: attributes)
      end

      def delete!(filter: {}, includes: nil, limit: nil, sort: nil)
        Spaceship::ConnectAPI.delete_app_info_localization(app_info_localization_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/app_info_localization.rb
fastlane_hotfix-2.165.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb