class DropboxApi::Results::RelocationBatchResult
Result returned by {Client#copy_batch} or {Client#move_batch} that may either launch an asynchronous job or complete synchronously.
The value will be either `:in_progress` or a list of job statuses.
Public Class Methods
new(result_data)
click to toggle source
# File lib/dropbox_api/results/relocation_batch_result.rb, line 8 def self.new(result_data) case result_data['.tag'] when 'in_progress' :in_progress when 'complete' result_data['entries'].map do |entry| DropboxApi::Results::RelocationBatchResultEntry.new(entry) end else raise NotImplementedError, "Unknown result type: #{result_data['.tag']}" end end