Sha256: ce3d36d73ad2b7f372929f7a49d0190a3934f4f966a85be4598db90b554f7fcd

Contents?: true

Size: 950 Bytes

Versions: 108

Compression:

Stored size: 950 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.map(&:to_models).flatten
      end
    end
  end
end

Version data entries

108 entries across 108 versions & 2 rubygems

Version Path
fastlane-2.131.0.beta.20190910200104 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.131.0.beta.20190909200058 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.131.0.beta.20190908200041 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.131.0.beta.20190907200030 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.131.0.beta.20190906200026 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.131.0.beta.20190905200113 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.131.0.beta.20190904200040 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.131.0.beta.20190903200013 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.131.0.beta.20190902200022 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.131.0.beta.20190901200035 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.131.0.beta.20190831200041 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.131.0.beta.20190830200038 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.130.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.130.0.beta.20190829200051 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.130.0.beta.20190828200015 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.130.0.beta.20190827200051 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.130.0.beta.20190826200016 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.130.0.beta.20190825200030 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.130.0.beta.20190824200021 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane-2.130.0.beta.20190823200017 spaceship/lib/spaceship/connect_api/models/build_delivery.rb