Module: AppStoreConnectApi::Domain::Devices

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

Instance Method Summary collapse

Instance Method Details

#create_device(attributes) ⇒ Object Also known as: register_device



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

def create_device(attributes)
  post '/v1/devices', data: { attributes: attributes,
                              type: 'devices' }
end

#device(device_id, options = {}) ⇒ Object



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

def device(device_id, options = {})
  get "/v1/devices/#{device_id}", options
end

#devices(options = {}) ⇒ Object



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

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

#update_device(device_id, attributes) ⇒ Object



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

def update_device(device_id, attributes)
  patch "/v1/devices/#{device_id}", data: { attributes: attributes,
                                            id: device_id,
                                            type: 'devices' }
end