Sha256: c9cad2c575ae9d82cab244fd8e31654548f25e09b191c77134e74915b5f96539

Contents?: true

Size: 947 Bytes

Versions: 63

Compression:

Stored size: 947 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(app_id: nil, version: nil, build_number: nil)
        resps = Spaceship::ConnectAPI.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

63 entries across 63 versions & 1 rubygems

Version Path
fastlane-2.167.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.166.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.165.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.164.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.163.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.162.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.161.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.160.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.159.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.158.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.157.4 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.157.3 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.157.2 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.157.1 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.157.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.156.1 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.156.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.155.3 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.155.2 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.155.1 spaceship/lib/spaceship/connect_api/models/build_delivery.rb