Sha256: 1962605d29b43cecbbabcec31e8f44373d92fc41991b987f72df5b12bcbf821f

Contents?: true

Size: 1.83 KB

Versions: 16

Compression:

Stored size: 1.83 KB

Contents

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

        attr_accessor :auto_notify_enabled
        attr_accessor :did_notify
        attr_accessor :internal_build_state
        attr_accessor :external_build_state

        module InternalState
          PROCESSING_EXCEPTION = "PROCESSING_EXCEPTION"
          MISSING_EXPORT_COMPLIANCE = "MISSING_EXPORT_COMPLIANCE"
          READY_FOR_BETA_TESTING = "READY_FOR_BETA_TESTING"
          IN_BETA_TESTING = "IN_BETA_TESTING"
          EXPIRED = "EXPIRED"
          IN_EXPORT_COMPLIANCE_REVIEW = "IN_EXPORT_COMPLIANCE_REVIEW"
        end

        module ExternalState
          PROCESSING = "PROCESSING"
          PROCESSING_EXCEPTION = "PROCESSING_EXCEPTION"
          MISSING_EXPORT_COMPLIANCE = "MISSING_EXPORT_COMPLIANCE"
          READY_FOR_BETA_TESTING = "READY_FOR_BETA_TESTING"
          IN_BETA_TESTING = "IN_BETA_TESTING"
          EXPIRED = "EXPIRED"
          READY_FOR_BETA_SUBMISSION = "READY_FOR_BETA_SUBMISSION"
          IN_EXPORT_COMPLIANCE_REVIEW = "IN_EXPORT_COMPLIANCE_REVIEW"
          WAITING_FOR_BETA_REVIEW = "WAITING_FOR_BETA_REVIEW"
          IN_BETA_REVIEW = "IN_BETA_REVIEW"
          BETA_REJECTED = "BETA_REJECTED"
          BETA_APPROVED = "BETA_APPROVED"
        end

        attr_mapping({
          "autoNotifyEnabled" => "auto_notify_enabled",
          "didNotify" => "did_notify",
          "internalBuildState" => "internal_build_state",
          "externalBuildState" => "external_build_state"
        })

        def self.type
          return "buildBetaDetails"
        end

        #
        # Helpers
        #

        def ready_for_beta_submission?
          return external_build_state == ExternalState::READY_FOR_BETA_SUBMISSION
        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_beta_detail.rb
fastlane-2.126.0.beta.20190622200100 spaceship/lib/spaceship/connect_api/testflight/models/build_beta_detail.rb
fastlane-2.126.0.beta.20190621200104 spaceship/lib/spaceship/connect_api/testflight/models/build_beta_detail.rb
fastlane-2.126.0.beta.20190620200055 spaceship/lib/spaceship/connect_api/testflight/models/build_beta_detail.rb
fastlane-2.126.0.beta.20190619200046 spaceship/lib/spaceship/connect_api/testflight/models/build_beta_detail.rb
fastlane-2.126.0.beta.20190618200051 spaceship/lib/spaceship/connect_api/testflight/models/build_beta_detail.rb
fastlane-2.126.0.beta.20190617200114 spaceship/lib/spaceship/connect_api/testflight/models/build_beta_detail.rb
fastlane-2.126.0.beta.20190616200045 spaceship/lib/spaceship/connect_api/testflight/models/build_beta_detail.rb
fastlane-2.126.0.beta.20190615200013 spaceship/lib/spaceship/connect_api/testflight/models/build_beta_detail.rb
fastlane-2.126.0.beta.20190614200105 spaceship/lib/spaceship/connect_api/testflight/models/build_beta_detail.rb
fastlane-2.126.0.beta.20190613200017 spaceship/lib/spaceship/connect_api/testflight/models/build_beta_detail.rb
fastlane-2.126.0.beta.20190611200027 spaceship/lib/spaceship/connect_api/testflight/models/build_beta_detail.rb
fastlane-2.126.0.beta.20190610200032 spaceship/lib/spaceship/connect_api/testflight/models/build_beta_detail.rb
fastlane-2.126.0.beta.20190609200013 spaceship/lib/spaceship/connect_api/testflight/models/build_beta_detail.rb
fastlane-2.126.0.beta.20190608200023 spaceship/lib/spaceship/connect_api/testflight/models/build_beta_detail.rb
fastlane-2.126.0.beta.20190607200028 spaceship/lib/spaceship/connect_api/testflight/models/build_beta_detail.rb