class DropboxApi::Results::CopyBatchResult
Public Class Methods
new(result_data)
click to toggle source
# File lib/dropbox_api/results/copy_batch_result.rb, line 4 def self.new(result_data) case result_data['.tag'] when 'async_job_id' result_data['async_job_id'] when 'complete' RelocationBatchResult.new(result_data) else raise NotImplementedError, "Unknown result type: #{result_data['.tag']}" end end