Method: Spaceship::ConnectAPI::AppPreview#update

Defined in:
spaceship/lib/spaceship/connect_api/models/app_preview.rb

#update(client: nil, attributes: nil) ⇒ Object



123
124
125
126
127
# File 'spaceship/lib/spaceship/connect_api/models/app_preview.rb', line 123

def update(client: nil, attributes: nil)
  client ||= Spaceship::ConnectAPI
  attributes = reverse_attr_mapping(attributes)
  client.patch_app_preview(app_preview_id: id, attributes: attributes).first
end