Module: Spaceship::Tunes::AppStatus

Defined in:
lib/spaceship/tunes/app_status.rb

Overview

Constant Summary collapse

PREPARE_FOR_SUBMISSION =

You can edit this version, upload new binaries and more

"Prepare for Submission"
READY_FOR_SALE =

App is currently live in the App Store

"Ready for Sale"
WAITING_FOR_REVIEW =

Waiting for Appleā€™s Review

"Waiting For Review"
IN_REVIEW =

Currently in Review

"In Review"
REJECTED =

App rejected for whatever reason

"Rejected"
DEVELOPER_REMOVED_FROM_SALE =

The developer took the app from the App Store

"Developer Removed From Sale"
DEVELOPER_REJECTED =

Developer rejected this version/binary

"Developer Rejected"
PENDING_CONTRACT =

You have to renew your Apple account to keep using iTunes Connect

"Pending Contract"
UPLOAD_RECEIVED =
"Upload Received"
PENDING_DEVELOPER_RELEASE =
"Pending Developer Release"
PROCESSING_FOR_APP_STORE =
"Processing for App Store"

Class Method Summary collapse

Class Method Details

.get_from_string(text) ⇒ Object

Get the app status matching based on a string (given by iTunes Connect)



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/spaceship/tunes/app_status.rb', line 40

def self.get_from_string(text)
  mapping = {
    'readyForSale' => READY_FOR_SALE,
    'prepareForUpload' => PREPARE_FOR_SUBMISSION,
    'devRejected' => DEVELOPER_REJECTED,
    'pendingContract' => PENDING_CONTRACT,
    'developerRemovedFromSale' => DEVELOPER_REMOVED_FROM_SALE,
    'waitingForReview' => WAITING_FOR_REVIEW,
    'inReview' => IN_REVIEW,
    'pendingDeveloperRelease' => PENDING_DEVELOPER_RELEASE
  }

  mapping.each do |k, v|
    return v if k == text
  end

  return nil
end