Class: Spaceship::ConnectAPI::AppInfo
- Inherits:
-
Object
- Object
- Spaceship::ConnectAPI::AppInfo
- Includes:
- Model
- Defined in:
- spaceship/lib/spaceship/connect_api/models/app_info.rb
Defined Under Namespace
Modules: AppStoreAgeRating, AppStoreState
Instance Attribute Summary collapse
-
#app_store_age_rating ⇒ Object
Returns the value of attribute app_store_age_rating.
-
#app_store_state ⇒ Object
Returns the value of attribute app_store_state.
-
#brazil_age_rating ⇒ Object
Returns the value of attribute brazil_age_rating.
-
#kids_age_band ⇒ Object
Returns the value of attribute kids_age_band.
Attributes included from Model
Class Method Summary collapse
Instance Method Summary collapse
-
#create_app_info_localization(attributes: nil) ⇒ Object
App Info Localizations.
- #delete!(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
- #get_app_info_localizations(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
-
#update(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
API.
- #update_categories(category_id_map: nil) ⇒ Object
Methods included from Model
#attr_mapping, included, #initialize, #to_json, #update_attributes
Instance Attribute Details
#app_store_age_rating ⇒ Object
Returns the value of attribute app_store_age_rating.
8 9 10 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info.rb', line 8 def @app_store_age_rating end |
#app_store_state ⇒ Object
Returns the value of attribute app_store_state.
7 8 9 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info.rb', line 7 def app_store_state @app_store_state end |
#brazil_age_rating ⇒ Object
Returns the value of attribute brazil_age_rating.
9 10 11 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info.rb', line 9 def @brazil_age_rating end |
#kids_age_band ⇒ Object
Returns the value of attribute kids_age_band.
10 11 12 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info.rb', line 10 def kids_age_band @kids_age_band end |
Class Method Details
.type ⇒ Object
36 37 38 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info.rb', line 36 def self.type return "appInfos" end |
Instance Method Details
#create_app_info_localization(attributes: nil) ⇒ Object
App Info Localizations
60 61 62 63 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info.rb', line 60 def create_app_info_localization(attributes: nil) resp = Spaceship::ConnectAPI.post_app_info_localization(app_info_id: id, attributes: attributes) return resp.to_models.first end |
#delete!(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
52 53 54 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info.rb', line 52 def delete!(filter: {}, includes: nil, limit: nil, sort: nil) Spaceship::ConnectAPI.delete_app_info(app_info_id: id) end |
#get_app_info_localizations(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
65 66 67 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info.rb', line 65 def get_app_info_localizations(filter: {}, includes: nil, limit: nil, sort: nil) return Spaceship::ConnectAPI.get_app_info_localizations(app_info_id: id, filter: filter, includes: includes, limit: limit, sort: sort) end |
#update(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
API
44 45 46 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info.rb', line 44 def update(filter: {}, includes: nil, limit: nil, sort: nil) Spaceship::ConnectAPI.patch_app_info(app_info_id: id).first end |
#update_categories(category_id_map: nil) ⇒ Object
48 49 50 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info.rb', line 48 def update_categories(category_id_map: nil) Spaceship::ConnectAPI.patch_app_info_categories(app_info_id: id, category_id_map: category_id_map).first end |