Sha256: 0c9185ce6bf722cf535a4d7849c131e123cfe94a894c99e7f1a72baa5d560b9a

Contents?: true

Size: 983 Bytes

Versions: 2

Compression:

Stored size: 983 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

2 entries across 2 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 spaceship/lib/spaceship/connect_api/models/build_delivery.rb
fastlane_hotfix-2.165.0 spaceship/lib/spaceship/connect_api/models/build_delivery.rb