Sha256: f55036f8c6ffa4c37ecb6e48e31d94ca9c9048b99207416eb8afb5920ca7f540
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
module DropboxApi::Results class RelocationBatchResultEntry < DropboxApi::Results::Base 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dropbox_api-0.1.18 | lib/dropbox_api/results/relocation_batch_result_entry.rb |
dropbox_api-0.1.17 | lib/dropbox_api/results/relocation_batch_result_entry.rb |