Sha256: 3866fb23de74e3aa54687bd6151c758013a6f94b868d98964a1dfa04c8da9e83

Contents?: true

Size: 391 Bytes

Versions: 2

Compression:

Stored size: 391 Bytes

Contents

module DropboxApi::Results
  class CopyBatchResult < DropboxApi::Results::Base
    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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dropbox_api-0.1.18 lib/dropbox_api/results/copy_batch_result.rb
dropbox_api-0.1.17 lib/dropbox_api/results/copy_batch_result.rb