Module: AppStoreConnectApi::Domain::BetaBuildLocalizations

Included in:
AppStoreConnectApi::Domain
Defined in:
lib/app_store_connect_api/domain/beta_build_localizations.rb

Instance Method Summary collapse

Instance Method Details

#beta_build_localization(beta_build_localization_id, options = {}) ⇒ Object



12
13
14
# File 'lib/app_store_connect_api/domain/beta_build_localizations.rb', line 12

def beta_build_localization(beta_build_localization_id, options = {})
  get "/v1/betaBuildLocalizations/#{beta_build_localization_id}", options
end

#beta_build_localization_build(beta_build_localization_id, options = {}) ⇒ Object



36
37
38
# File 'lib/app_store_connect_api/domain/beta_build_localizations.rb', line 36

def beta_build_localization_build(beta_build_localization_id, options = {})
  get "/v1/betaBuildLocalizations/#{beta_build_localization_id}/build", options
end

#beta_build_localizations(options = {}) ⇒ Object



7
8
9
# File 'lib/app_store_connect_api/domain/beta_build_localizations.rb', line 7

def beta_build_localizations(options = {})
  get '/v1/betaBuildLocalizations', options
end

#create_beta_build_localization(attributes, relationships) ⇒ Object



17
18
19
20
21
# File 'lib/app_store_connect_api/domain/beta_build_localizations.rb', line 17

def create_beta_build_localization(attributes, relationships)
  post '/v1/betaBuildLocalizations', data: { attributes: attributes,
                                             relationships: Utils::RelationshipMapper.expand(relationships),
                                             type: 'betaBuildLocalizations' }
end

#delete_beta_build_localization(beta_build_localization_id) ⇒ Object



31
32
33
# File 'lib/app_store_connect_api/domain/beta_build_localizations.rb', line 31

def delete_beta_build_localization(beta_build_localization_id)
  delete "/v1/betaBuildLocalizations/#{beta_build_localization_id}"
end

#update_beta_build_localization(beta_build_localization_id, attributes) ⇒ Object



24
25
26
27
28
# File 'lib/app_store_connect_api/domain/beta_build_localizations.rb', line 24

def update_beta_build_localization(beta_build_localization_id, attributes)
  patch "/v1/betaBuildLocalizations/#{beta_build_localization_id}", data: { attributes: attributes,
                                                                            id: beta_build_localization_id,
                                                                            type: 'betaBuildLocalizations' }
end