Class: Spaceship::ConnectAPI::AppStoreVersionLocalization
- Inherits:
-
Object
- Object
- Spaceship::ConnectAPI::AppStoreVersionLocalization
- Includes:
- Model
- Defined in:
- spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb
Instance Attribute Summary collapse
-
#app_preview_sets ⇒ Object
Returns the value of attribute app_preview_sets.
-
#app_screenshot_sets ⇒ Object
Returns the value of attribute app_screenshot_sets.
-
#description ⇒ Object
Returns the value of attribute description.
-
#keywords ⇒ Object
Returns the value of attribute keywords.
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#marketing_url ⇒ Object
Returns the value of attribute marketing_url.
-
#promotional_text ⇒ Object
Returns the value of attribute promotional_text.
-
#support_url ⇒ Object
Returns the value of attribute support_url.
-
#whats_new ⇒ Object
Returns the value of attribute whats_new.
Attributes included from Model
Class Method Summary collapse
Instance Method Summary collapse
- #create_app_preview_set(attributes: nil) ⇒ Object
- #create_app_screenshot_set(attributes: nil) ⇒ Object
- #delete!(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
-
#get_app_preview_sets(filter: {}, includes: "appPreviews", limit: nil, sort: nil) ⇒ Object
App Preview Sets.
-
#get_app_screenshot_sets(filter: {}, includes: "appScreenshots", limit: nil, sort: nil) ⇒ Object
App Screenshot Sets.
- #update(attributes: nil) ⇒ Object
Methods included from Model
#attr_mapping, included, #initialize, #to_json, #update_attributes
Instance Attribute Details
#app_preview_sets ⇒ Object
Returns the value of attribute app_preview_sets.
19 20 21 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 19 def app_preview_sets @app_preview_sets end |
#app_screenshot_sets ⇒ Object
Returns the value of attribute app_screenshot_sets.
18 19 20 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 18 def app_screenshot_sets @app_screenshot_sets end |
#description ⇒ Object
Returns the value of attribute description.
10 11 12 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 10 def description @description end |
#keywords ⇒ Object
Returns the value of attribute keywords.
12 13 14 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 12 def keywords @keywords end |
#locale ⇒ Object
Returns the value of attribute locale.
11 12 13 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 11 def locale @locale end |
#marketing_url ⇒ Object
Returns the value of attribute marketing_url.
13 14 15 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 13 def marketing_url @marketing_url end |
#promotional_text ⇒ Object
Returns the value of attribute promotional_text.
14 15 16 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 14 def promotional_text @promotional_text end |
#support_url ⇒ Object
Returns the value of attribute support_url.
15 16 17 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 15 def support_url @support_url end |
#whats_new ⇒ Object
Returns the value of attribute whats_new.
16 17 18 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 16 def whats_new @whats_new end |
Class Method Details
.all(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
API
42 43 44 45 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 42 def self.all(filter: {}, includes: nil, limit: nil, sort: nil) resp = Spaceship::ConnectAPI.get_app_store_version_localizations(filter: filter, includes: includes, limit: limit, sort: sort) return resp.to_models end |
.type ⇒ Object
34 35 36 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 34 def self.type return "appStoreVersionLocalizations" end |
Instance Method Details
#create_app_preview_set(attributes: nil) ⇒ Object
65 66 67 68 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 65 def create_app_preview_set(attributes: nil) resp = Spaceship::ConnectAPI.post_app_preview_set(app_store_version_localization_id: id, attributes: attributes) return resp.to_models.first end |
#create_app_screenshot_set(attributes: nil) ⇒ Object
80 81 82 83 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 80 def create_app_screenshot_set(attributes: nil) resp = Spaceship::ConnectAPI.post_app_screenshot_set(app_store_version_localization_id: id, attributes: attributes) return resp.to_models.first end |
#delete!(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
51 52 53 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 51 def delete!(filter: {}, includes: nil, limit: nil, sort: nil) Spaceship::ConnectAPI.delete_app_store_version_localization(app_store_version_localization_id: id) end |
#get_app_preview_sets(filter: {}, includes: "appPreviews", limit: nil, sort: nil) ⇒ Object
App Preview Sets
59 60 61 62 63 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 59 def get_app_preview_sets(filter: {}, includes: "appPreviews", limit: nil, sort: nil) filter ||= {} filter["appStoreVersionLocalization"] = id return Spaceship::ConnectAPI::AppPreviewSet.all(filter: filter, includes: includes, limit: limit, sort: sort) end |
#get_app_screenshot_sets(filter: {}, includes: "appScreenshots", limit: nil, sort: nil) ⇒ Object
App Screenshot Sets
74 75 76 77 78 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 74 def get_app_screenshot_sets(filter: {}, includes: "appScreenshots", limit: nil, sort: nil) filter ||= {} filter["appStoreVersionLocalization"] = id return Spaceship::ConnectAPI::AppScreenshotSet.all(filter: filter, includes: includes, limit: limit, sort: sort) end |
#update(attributes: nil) ⇒ Object
47 48 49 |
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 47 def update(attributes: nil) Spaceship::ConnectAPI.patch_app_store_version_localization(app_store_version_localization_id: id, attributes: attributes) end |