Sha256: 20e33d7b015a3f47a036ad7ab40e61d637dfbb869dbb9e6c3e3ef9202c88bb6b

Contents?: true

Size: 1.01 KB

Versions: 16

Compression:

Stored size: 1.01 KB

Contents

require_relative '../../model'
module Spaceship
  module ConnectAPI
    module TestFlight
      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 = testflight_client.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
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fastlane-2.126.0.beta.20190623200100 spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb
fastlane-2.126.0.beta.20190622200100 spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb
fastlane-2.126.0.beta.20190621200104 spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb
fastlane-2.126.0.beta.20190620200055 spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb
fastlane-2.126.0.beta.20190619200046 spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb
fastlane-2.126.0.beta.20190618200051 spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb
fastlane-2.126.0.beta.20190617200114 spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb
fastlane-2.126.0.beta.20190616200045 spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb
fastlane-2.126.0.beta.20190615200013 spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb
fastlane-2.126.0.beta.20190614200105 spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb
fastlane-2.126.0.beta.20190613200017 spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb
fastlane-2.126.0.beta.20190611200027 spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb
fastlane-2.126.0.beta.20190610200032 spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb
fastlane-2.126.0.beta.20190609200013 spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb
fastlane-2.126.0.beta.20190608200023 spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb
fastlane-2.126.0.beta.20190607200028 spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb