Class: TinyAppstoreConnect::Model::AppStoreVersion

Inherits:
Object
  • Object
show all
Includes:
TinyAppstoreConnect::Model
Defined in:
lib/tiny_appstore_connect/models/app_store_version.rb

Defined Under Namespace

Modules: AppStoreState, ReleaseType

Constant Summary collapse

ESSENTIAL_INCLUDES =
[
  'app',
  'appStoreVersionSubmission',
  'build'
].join(',')

Instance Attribute Summary collapse

Attributes included from TinyAppstoreConnect::Model

#id, #included, #rate

Class Method Summary collapse

Instance Method Summary collapse

Methods included from TinyAppstoreConnect::Model

included, #initialize, #update_attributes, #update_include

Instance Attribute Details

#appObject

include



28
29
30
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 28

def app
  @app
end

#app_store_stateObject

Returns the value of attribute app_store_state.



12
13
14
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 12

def app_store_state
  @app_store_state
end

#app_store_version_submissionObject

Returns the value of attribute app_store_version_submission.



29
30
31
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 29

def app_store_version_submission
  @app_store_version_submission
end

#buildObject

Returns the value of attribute build.



30
31
32
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 30

def build
  @build
end

Returns the value of attribute copyright.



24
25
26
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 24

def copyright
  @copyright
end

#created_dateObject

Returns the value of attribute created_date.



17
18
19
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 17

def created_date
  @created_date
end

#downloadableObject

Returns the value of attribute downloadable.



16
17
18
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 16

def downloadable
  @downloadable
end

#earliest_release_dateObject

2020-06-17T12:00:00-07:00



14
15
16
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 14

def earliest_release_date
  @earliest_release_date
end

#expiration_dateObject

Returns the value of attribute expiration_date.



20
21
22
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 20

def expiration_date
  @expiration_date
end

#expiredObject

Returns the value of attribute expired.



21
22
23
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 21

def expired
  @expired
end

#min_os_versionObject

Returns the value of attribute min_os_version.



25
26
27
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 25

def min_os_version
  @min_os_version
end

#platformObject

Returns the value of attribute platform.



10
11
12
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 10

def platform
  @platform
end

#release_typeObject

Returns the value of attribute release_type.



13
14
15
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 13

def release_type
  @release_type
end

#store_iconObject

Returns the value of attribute store_icon.



22
23
24
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 22

def store_icon
  @store_icon
end

#uploaded_dateObject

Returns the value of attribute uploaded_date.



19
20
21
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 19

def uploaded_date
  @uploaded_date
end

#uses_idfaObject

Returns the value of attribute uses_idfa.



15
16
17
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 15

def uses_idfa
  @uses_idfa
end

#versionObject

Returns the value of attribute version.



18
19
20
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 18

def version
  @version
end

#version_stringObject

Returns the value of attribute version_string.



11
12
13
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 11

def version_string
  @version_string
end

#watch_store_iconObject

Returns the value of attribute watch_store_icon.



23
24
25
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 23

def watch_store_icon
  @watch_store_icon
end

Class Method Details

.typeObject



57
58
59
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 57

def self.type
  'appStoreVersions'
end

Instance Method Details

#editable?Boolean

Returns:

  • (Boolean)


81
82
83
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 81

def editable?
  preparing? || rejected?
end

#in_review?Boolean

Returns:

  • (Boolean)


66
67
68
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 66

def in_review?
  app_store_state == AppStoreState::IN_REVIEW
end

#on_sale?Boolean

Returns:

  • (Boolean)


61
62
63
64
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 61

def on_sale?
  app_store_state == AppStoreState::READY_FOR_SALE ||
  app_store_state == AppStoreState::PROCESSING_FOR_APP_STORE
end

#preparing?Boolean

Returns:

  • (Boolean)


70
71
72
73
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 70

def preparing?
  app_store_state == AppStoreState::PREPARE_FOR_SUBMISSION ||
  app_store_state == AppStoreState::DEVELOPER_REJECTED
end

#rejected?Boolean

Returns:

  • (Boolean)


75
76
77
78
79
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 75

def rejected?
  app_store_state == AppStoreState::REJECTED ||
  app_store_state == AppStoreState::METADATA_REJECTED ||
  app_store_state == AppStoreState::INVALID_BINARY
end