Class: TinyAppstoreConnect::Model::AppStoreVersion
- Inherits:
-
Object
- Object
- TinyAppstoreConnect::Model::AppStoreVersion
- 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
-
#app ⇒ Object
include.
-
#app_store_state ⇒ Object
Returns the value of attribute app_store_state.
-
#app_store_version_submission ⇒ Object
Returns the value of attribute app_store_version_submission.
-
#build ⇒ Object
Returns the value of attribute build.
-
#copyright ⇒ Object
Returns the value of attribute copyright.
-
#created_date ⇒ Object
Returns the value of attribute created_date.
-
#downloadable ⇒ Object
Returns the value of attribute downloadable.
-
#earliest_release_date ⇒ Object
2020-06-17T12:00:00-07:00.
-
#expiration_date ⇒ Object
Returns the value of attribute expiration_date.
-
#expired ⇒ Object
Returns the value of attribute expired.
-
#min_os_version ⇒ Object
Returns the value of attribute min_os_version.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#release_type ⇒ Object
Returns the value of attribute release_type.
-
#store_icon ⇒ Object
Returns the value of attribute store_icon.
-
#uploaded_date ⇒ Object
Returns the value of attribute uploaded_date.
-
#uses_idfa ⇒ Object
Returns the value of attribute uses_idfa.
-
#version ⇒ Object
Returns the value of attribute version.
-
#version_string ⇒ Object
Returns the value of attribute version_string.
-
#watch_store_icon ⇒ Object
Returns the value of attribute watch_store_icon.
Attributes included from TinyAppstoreConnect::Model
Class Method Summary collapse
Instance Method Summary collapse
- #editable? ⇒ Boolean
- #in_review? ⇒ Boolean
- #on_sale? ⇒ Boolean
- #preparing? ⇒ Boolean
- #rejected? ⇒ Boolean
Methods included from TinyAppstoreConnect::Model
included, #initialize, #update_attributes, #update_include
Instance Attribute Details
#app ⇒ Object
include
28 29 30 |
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 28 def app @app end |
#app_store_state ⇒ Object
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_submission ⇒ Object
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 |
#build ⇒ Object
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 |
#copyright ⇒ Object
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_date ⇒ Object
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 |
#downloadable ⇒ Object
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_date ⇒ Object
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_date ⇒ Object
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 |
#expired ⇒ Object
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_version ⇒ Object
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 |
#platform ⇒ Object
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_type ⇒ Object
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_icon ⇒ Object
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_date ⇒ Object
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_idfa ⇒ Object
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 |
#version ⇒ Object
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_string ⇒ Object
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_icon ⇒ Object
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
.type ⇒ Object
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
81 82 83 |
# File 'lib/tiny_appstore_connect/models/app_store_version.rb', line 81 def editable? preparing? || rejected? end |
#in_review? ⇒ 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
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
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
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 |