Sha256: f9c91b04c7b8d296ceb202a20db49b57f5a482a85cf93611a1d68476789ed436

Contents?: true

Size: 536 Bytes

Versions: 7

Compression:

Stored size: 536 Bytes

Contents

class DropboxDirectory
  def initialize(directory_path)
    @directory_path = directory_path
    @directory_path.sub!(/\A\//, '')
    @dropbox_api_client = BanalDropboxApi.new
  end

  def entries
    dropbox_folder_path = @dropbox_api_client.team_folder_path
    if @directory_path.present?
      dropbox_folder_path += '/'
      dropbox_folder_path += @directory_path
    end

    entries_parsed_json = @dropbox_api_client
      .client
      .list_folder(dropbox_folder_path)
      .instance_variable_get(:@data)["entries"]
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
jester-data-8.0.0 app/models/dropbox_directory.rb
ezii-os-5.2.1 app/models/dropbox_directory.rb
ezii-os-2.0.1 app/models/dropbox_directory.rb
ezii-os-1.1.0 app/models/dropbox_directory.rb
ezii-os-1.0.0 app/models/dropbox_directory.rb
ezii-os-0.0.0.1.0 app/models/dropbox_directory.rb
ezii-os-0.0.0.0.1 app/models/dropbox_directory.rb