Sha256: cd33ce9bf94a96dc2c3ece3bb4783ee3aa71fc947df1039a8ca2796fa8e696ac

Contents?: true

Size: 354 Bytes

Versions: 15

Compression:

Stored size: 354 Bytes

Contents

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
dropbox_api-0.1.18 lib/dropbox_api/results/share_folder_launch.rb
dropbox_api-0.1.17 lib/dropbox_api/results/share_folder_launch.rb
dropbox_api-0.1.16 lib/dropbox_api/results/share_folder_launch.rb
dropbox_api-0.1.15 lib/dropbox_api/results/share_folder_launch.rb
dropbox_api-0.1.14 lib/dropbox_api/results/share_folder_launch.rb
dropbox_api-0.1.13 lib/dropbox_api/results/share_folder_launch.rb
dropbox_api-0.1.12 lib/dropbox_api/results/share_folder_launch.rb
dropbox_api-0.1.11 lib/dropbox_api/results/share_folder_launch.rb
dropbox_api-0.1.10 lib/dropbox_api/results/share_folder_launch.rb
dropbox_api-0.1.9 lib/dropbox_api/results/share_folder_launch.rb
dropbox_api-0.1.8 lib/dropbox_api/results/share_folder_launch.rb
dropbox_api-0.1.7 lib/dropbox_api/results/share_folder_launch.rb
dropbox_api-0.1.6 lib/dropbox_api/results/share_folder_launch.rb
dropbox_api-0.1.5 lib/dropbox_api/results/share_folder_launch.rb
dropbox_api-0.1.4 lib/dropbox_api/results/share_folder_launch.rb