Sha256: f1b7c87821933023ee34a65284155fc661fa339e3338fe0587ed328f28249619
Contents?: true
Size: 660 Bytes
Versions: 2
Compression:
Stored size: 660 Bytes
Contents
module DropboxApi::Results # Result returned by {Client#create_folder_batch} that may either launch an # asynchronous job or complete synchronously. # # The value will be either a job id or a list of job statuses. class CreateFolderBatchResult < DropboxApi::Results::Base def self.new(result_data) case result_data[".tag"] when "async_job_id" result_data when "complete" result_data["entries"].map do |entry| DropboxApi::Results::CreateFolderBatchResultEntry.new(entry) end 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/create_folder_batch_result.rb |
dropbox_api-0.1.17 | lib/dropbox_api/results/create_folder_batch_result.rb |