class DropboxApi::Results::RelocationBatchResultEntry
Public Class Methods
new(result_data)
click to toggle source
# File lib/dropbox_api/results/relocation_batch_result_entry.rb, line 4 def self.new(result_data) case result_data['.tag'] when 'success' DropboxApi::Metadata::Resource.new result_data['success'] when 'failure' DropboxApi::Errors::RelocationBatchEntryError .build('File or folder operation failed', result_data['failure']) else raise NotImplementedError, "Unknown result type: #{result_data['.tag']}" end end