Sha256: 547a33dd4128dab98cbc3262f65739ec42927e07ec467db767705f706f869fe6

Contents?: true

Size: 986 Bytes

Versions: 55

Compression:

Stored size: 986 Bytes

Contents

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

      attr_accessor :cf_build_version
      attr_accessor :cf_build_short_version_string
      attr_accessor :platform
      attr_accessor :uploaded_date

      attr_mapping({
        "cfBundleVersion" => "cf_build_version",
        "cfBundleShortVersionString" => "cf_build_short_version_string",
        "platform" => "platform",
        "uploadedDate" => "uploaded_date"
      })

      def self.type
        return "buildDeliveries"
      end

      #
      # API
      #

      def self.all(client: nil, app_id: nil, version: nil, build_number: nil)
        client ||= Spaceship::ConnectAPI
        resps = client.get_build_deliveries(
          filter: { app: app_id, cfBundleShortVersionString: version, cfBundleVersion: build_number },
          limit: 1
        ).all_pages
        return resps.flat_map(&:to_models)
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
fastlane-2.205.2 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.205.1 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.205.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.204.3 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.204.2 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.204.1 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.204.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.203.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.202.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.201.2 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.201.1 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.201.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.201.0.rc3 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.201.0.rc2 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.201.0.rc1 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.200.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.199.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.198.1 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.198.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.197.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb