Class: Spaceship::ConnectAPI::AppInfoLocalization

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
spaceship/lib/spaceship/connect_api/models/app_info_localization.rb

Instance Attribute Summary collapse

Attributes included from Model

#id, #reverse_attr_map

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Model

#attr_mapping, included, #initialize, #reverse_attr_mapping, #to_json, #update_attributes

Instance Attribute Details

#localeObject

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

#nameObject

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_urlObject

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_textObject

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_urlObject

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

#subtitleObject

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

.typeObject



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