Class: DropboxApi::Results::ShareFolderLaunch

Inherits:
Object
  • Object
show all
Defined in:
lib/dropbox_api/results/share_folder_launch.rb

Class Method Summary collapse

Class Method Details

.new(result_data) ⇒ Object


3
4
5
6
7
8
9
10
11
12
# File 'lib/dropbox_api/results/share_folder_launch.rb', line 3

def self.new(result_data)
  case result_data[".tag"]
  when "complete"
    DropboxApi::Metadata::SharedFolder.new result_data
  when "async_job_id"
    result_data
  else
    raise ArgumentError, "Unable to infer resource type for `#{tag}`"
  end
end