Methods

Class/Module Index [+]

Quicksearch

Backup::Storage::Dropbox

Attributes

access_type[RW]

Dropbox Access Type Valid values are:

:app_folder (default)
:dropbox (full access)
api_key[RW]

Dropbox API credentials

api_secret[RW]

Dropbox API credentials

chunk_size[RW]

Chunk size, specified in MiB, for the ChunkedUploader.

max_retries[RW]

Number of times to retry failed operations.

Default: 10

retry_waitsec[RW]

Time in seconds to pause before each retry.

Default: 30

Public Class Methods

new(model, storage_id = nil) click to toggle source

Creates a new instance of the storage object

# File lib/backup/storage/dropbox.rb, line 37
def initialize(model, storage_id = nil)
  super

  @path           ||= 'backups'
  @access_type    ||= :app_folder
  @chunk_size     ||= 4 # MiB
  @max_retries    ||= 10
  @retry_waitsec  ||= 30
  path.sub!(/^\//, '')
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.