Module: ComponentTransfer::ResponseHelpers

Included in:
ArchivesSpaceService
Defined in:
backend/app/lib/component_transfer.rb

Instance Method Summary collapse

Instance Method Details

#component_transfer_response(resource_uri, archival_object_uri) ⇒ Object



12
13
14
15
16
17
# File 'backend/app/lib/component_transfer.rb', line 12

def component_transfer_response(resource_uri, archival_object_uri)
  begin
    (ao, event) = ComponentTransfer.transfer(resource_uri, archival_object_uri)
    json_response({:component => archival_object_uri, :resource => resource_uri, :event => event.uri}, 200)
  end
end