Class: Spaceship::ConnectAPI::AppInfoLocalization
- Inherits:
-
Object
- Object
- Spaceship::ConnectAPI::AppInfoLocalization
- Includes:
- Model
- Defined in:
- spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
Instance Attribute Summary collapse
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#name ⇒ Object
Returns the value of attribute name.
-
#privacy_choices_url ⇒ Object
Returns the value of attribute privacy_choices_url.
-
#privacy_policy_text ⇒ Object
Returns the value of attribute privacy_policy_text.
-
#privacy_policy_url ⇒ Object
Returns the value of attribute privacy_policy_url.
-
#subtitle ⇒ Object
Returns the value of attribute subtitle.
Attributes included from Model
Class Method Summary collapse
Instance Method Summary collapse
- #delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
-
#update(client: nil, attributes: nil) ⇒ Object
API.
Methods included from Model
#attr_mapping, included, #initialize, #reverse_attr_mapping, #to_json, #update_attributes
Instance Attribute Details
#locale ⇒ Object
Returns the value of attribute locale.
8 9 10 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info_localization.rb', line 8 def locale @locale end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info_localization.rb', line 9 def name @name end |
#privacy_choices_url ⇒ Object
Returns the value of attribute privacy_choices_url.
12 13 14 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info_localization.rb', line 12 def privacy_choices_url @privacy_choices_url end |
#privacy_policy_text ⇒ Object
Returns the value of attribute privacy_policy_text.
13 14 15 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info_localization.rb', line 13 def privacy_policy_text @privacy_policy_text end |
#privacy_policy_url ⇒ Object
Returns the value of attribute privacy_policy_url.
11 12 13 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info_localization.rb', line 11 def privacy_policy_url @privacy_policy_url end |
#subtitle ⇒ Object
Returns the value of attribute subtitle.
10 11 12 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info_localization.rb', line 10 def subtitle @subtitle end |
Class Method Details
.type ⇒ Object
24 25 26 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info_localization.rb', line 24 def self.type return "appInfoLocalizations" end |
Instance Method Details
#delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
40 41 42 43 44 45 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info_localization.rb', line 40 def delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil) client ||= Spaceship::ConnectAPI client.delete_app_info_localization(app_info_localization_id: id) rescue raise Spaceship::AppStoreLocalizationError, @locale end |
#update(client: nil, attributes: nil) ⇒ Object
API
32 33 34 35 36 37 38 |
# File 'spaceship/lib/spaceship/connect_api/models/app_info_localization.rb', line 32 def update(client: nil, attributes: nil) client ||= Spaceship::ConnectAPI attributes = reverse_attr_mapping(attributes) client.patch_app_info_localization(app_info_localization_id: id, attributes: attributes) rescue raise Spaceship::AppStoreLocalizationError, @locale end |