Class: Spaceship::ConnectAPI::AppStoreVersion
- Inherits:
-
Object
- Object
- Spaceship::ConnectAPI::AppStoreVersion
- Includes:
- Model
- Defined in:
- spaceship/lib/spaceship/connect_api/models/app_store_version.rb
Defined Under Namespace
Modules: AppStoreState, ReleaseType
Instance Attribute Summary collapse
-
#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.
-
#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.
-
#is_watch_only ⇒ Object
Returns the value of attribute is_watch_only.
-
#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.
-
#uses_idfa ⇒ Object
Returns the value of attribute uses_idfa.
-
#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 Model
Class Method Summary collapse
-
.get(app_store_version_id: nil, includes: nil, limit: nil, sort: nil) ⇒ Object
app,routingAppCoverage,resetRatingsRequest,appStoreVersionSubmission,appStoreVersionPhasedRelease,ageRatingDeclaration,appStoreReviewDetail,idfaDeclaration,gameCenterConfiguration.
- .type ⇒ Object
Instance Method Summary collapse
- #can_reject? ⇒ Boolean
-
#create_app_store_review_detail(attributes: nil) ⇒ Object
App Store Review Detail.
-
#create_app_store_version_localization(attributes: nil) ⇒ Object
App Store Version Localizations.
- #create_app_store_version_phased_release(attributes: nil) ⇒ Object
- #create_app_store_version_submission ⇒ Object
- #create_idfa_declaration(attributes: nil) ⇒ Object
- #create_reset_ratings_request ⇒ Object
-
#fetch_age_rating_declaration ⇒ Object
Age Rating Delcaration.
- #fetch_app_store_review_detail(includes: "appStoreReviewAttachments") ⇒ Object
-
#fetch_app_store_version_phased_release ⇒ Object
App Store Version Phased Releases.
-
#fetch_app_store_version_submission ⇒ Object
App Store Version Submissions.
-
#fetch_idfa_declaration ⇒ Object
IDFA Declarations.
-
#fetch_reset_ratings_request ⇒ Object
Reset Ratings Requests.
-
#get_app_store_version_localizations(filter: {}, includes: "appScreenshotSets", limit: nil, sort: nil) ⇒ Object
appScreenshotSets,appPreviewSets.
-
#get_build(build_id: nil) ⇒ Object
Build.
- #reject! ⇒ Object
- #select_build(build_id: nil) ⇒ Object
- #update(attributes: nil) ⇒ Object
Methods included from Model
#attr_mapping, included, #initialize, #to_json, #update_attributes
Instance Attribute Details
#app_store_state ⇒ Object
Returns the value of attribute app_store_state.
11 12 13 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 11 def app_store_state @app_store_state end |
#app_store_version_submission ⇒ Object
Returns the value of attribute app_store_version_submission.
22 23 24 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 22 def app_store_version_submission @app_store_version_submission end |
#copyright ⇒ Object
Returns the value of attribute copyright.
14 15 16 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 14 def copyright @copyright end |
#created_date ⇒ Object
Returns the value of attribute created_date.
20 21 22 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 20 def created_date @created_date end |
#downloadable ⇒ Object
Returns the value of attribute downloadable.
19 20 21 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 19 def downloadable @downloadable end |
#earliest_release_date ⇒ Object
2020-06-17T12:00:00-07:00
16 17 18 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 16 def earliest_release_date @earliest_release_date end |
#is_watch_only ⇒ Object
Returns the value of attribute is_watch_only.
18 19 20 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 18 def is_watch_only @is_watch_only end |
#platform ⇒ Object
Returns the value of attribute platform.
9 10 11 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 9 def platform @platform end |
#release_type ⇒ Object
Returns the value of attribute release_type.
15 16 17 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 15 def release_type @release_type end |
#store_icon ⇒ Object
Returns the value of attribute store_icon.
12 13 14 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 12 def store_icon @store_icon end |
#uses_idfa ⇒ Object
Returns the value of attribute uses_idfa.
17 18 19 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 17 def uses_idfa @uses_idfa end |
#version_string ⇒ Object
Returns the value of attribute version_string.
10 11 12 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 10 def version_string @version_string end |
#watch_store_icon ⇒ Object
Returns the value of attribute watch_store_icon.
13 14 15 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 13 def watch_store_icon @watch_store_icon end |
Class Method Details
.get(app_store_version_id: nil, includes: nil, limit: nil, sort: nil) ⇒ Object
app,routingAppCoverage,resetRatingsRequest,appStoreVersionSubmission,appStoreVersionPhasedRelease,ageRatingDeclaration,appStoreReviewDetail,idfaDeclaration,gameCenterConfiguration
80 81 82 83 84 85 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 80 def self.get(app_store_version_id: nil, includes: nil, limit: nil, sort: nil) return Spaceship::ConnectAPI.get_app_store_version( app_store_version_id: app_store_version_id, includes: includes ).first end |
.type ⇒ Object
60 61 62 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 60 def self.type return "appStoreVersions" end |
Instance Method Details
#can_reject? ⇒ Boolean
64 65 66 67 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 64 def can_reject? raise "No app_store_version_submission included" unless app_store_version_submission return app_store_version_submission.can_reject end |
#create_app_store_review_detail(attributes: nil) ⇒ Object
App Store Review Detail
120 121 122 123 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 120 def create_app_store_review_detail(attributes: nil) resp = Spaceship::ConnectAPI.post_app_store_review_detail(app_store_version_id: id, attributes: attributes) return resp.to_models.first end |
#create_app_store_version_localization(attributes: nil) ⇒ Object
App Store Version Localizations
104 105 106 107 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 104 def create_app_store_version_localization(attributes: nil) resp = Spaceship::ConnectAPI.post_app_store_version_localization(app_store_version_id: id, attributes: attributes) return resp.to_models.first end |
#create_app_store_version_phased_release(attributes: nil) ⇒ Object
139 140 141 142 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 139 def create_app_store_version_phased_release(attributes: nil) resp = Spaceship::ConnectAPI.post_app_store_version_phased_release(app_store_version_id: id, attributes: attributes) return resp.to_models.first end |
#create_app_store_version_submission ⇒ Object
153 154 155 156 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 153 def create_app_store_version_submission resp = Spaceship::ConnectAPI.post_app_store_version_submission(app_store_version_id: id) return resp.to_models.first end |
#create_idfa_declaration(attributes: nil) ⇒ Object
181 182 183 184 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 181 def create_idfa_declaration(attributes: nil) resp = Spaceship::ConnectAPI.post_idfa_declaration(app_store_version_id: id, attributes: attributes) return resp.to_models.first end |
#create_reset_ratings_request ⇒ Object
195 196 197 198 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 195 def resp = Spaceship::ConnectAPI.(app_store_version_id: id) return resp.to_models.first end |
#fetch_age_rating_declaration ⇒ Object
Age Rating Delcaration
95 96 97 98 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 95 def resp = Spaceship::ConnectAPI.(app_store_version_id: id) return resp.to_models.first end |
#fetch_app_store_review_detail(includes: "appStoreReviewAttachments") ⇒ Object
125 126 127 128 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 125 def fetch_app_store_review_detail(includes: "appStoreReviewAttachments") resp = Spaceship::ConnectAPI.get_app_store_review_detail(app_store_version_id: id, includes: includes) return resp.to_models.first end |
#fetch_app_store_version_phased_release ⇒ Object
App Store Version Phased Releases
134 135 136 137 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 134 def fetch_app_store_version_phased_release resp = Spaceship::ConnectAPI.get_app_store_version_phased_release(app_store_version_id: id) return resp.to_models.first end |
#fetch_app_store_version_submission ⇒ Object
App Store Version Submissions
148 149 150 151 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 148 def fetch_app_store_version_submission resp = Spaceship::ConnectAPI.get_app_store_version_submission(app_store_version_id: id) return resp.to_models.first end |
#fetch_idfa_declaration ⇒ Object
IDFA Declarations
176 177 178 179 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 176 def fetch_idfa_declaration resp = Spaceship::ConnectAPI.get_idfa_declaration(app_store_version_id: id) return resp.to_models.first end |
#fetch_reset_ratings_request ⇒ Object
Reset Ratings Requests
190 191 192 193 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 190 def resp = Spaceship::ConnectAPI.(app_store_version_id: id) return resp.to_models.first end |
#get_app_store_version_localizations(filter: {}, includes: "appScreenshotSets", limit: nil, sort: nil) ⇒ Object
appScreenshotSets,appPreviewSets
110 111 112 113 114 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 110 def get_app_store_version_localizations(filter: {}, includes: "appScreenshotSets", limit: nil, sort: nil) filter ||= {} filter["appStoreVersion"] = id return Spaceship::ConnectAPI::AppStoreVersionLocalization.all(filter: filter, includes: includes, limit: limit, sort: sort) end |
#get_build(build_id: nil) ⇒ Object
Build
162 163 164 165 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 162 def get_build(build_id: nil) resp = Spaceship::ConnectAPI.get_build(app_store_version_id: id, build_id: build_id) return resp.to_models.first end |
#reject! ⇒ Object
69 70 71 72 73 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 69 def reject! return false unless can_reject? app_store_version_submission.delete! return true end |
#select_build(build_id: nil) ⇒ Object
167 168 169 170 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 167 def select_build(build_id: nil) resp = Spaceship::ConnectAPI.patch_app_store_version_with_build(app_store_version_id: id, build_id: build_id) return resp.to_models.first end |
#update(attributes: nil) ⇒ Object
87 88 89 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version.rb', line 87 def update(attributes: nil) return Spaceship::ConnectAPI.patch_app_store_version(app_store_version_id: id, attributes: attributes).first end |