class Fog::Storage::Dropbox::Real

Public Class Methods

new(options={}) click to toggle source

Initialize connection to Dropbox

Notes

options parameter must include a value for :dropbox_oauth2_access_token in order to create a connection

Examples

dropbox_storage = Storage.new(
  :dropbox_oauth2_access_token => ENV['DROPBOX_OAUTH2_ACCESS_TOKEN']
)

Returns

# File lib/fog/dropbox/storage.rb, line 30
def initialize(options={})

  @dropbox_oauth2_access_token = options[:dropbox_oauth2_access_token]
  @dropbox_client = DropboxClient.new(@dropbox_oauth2_access_token)

end

Public Instance Methods

client() click to toggle source
# File lib/fog/dropbox/storage.rb, line 37
def client
  @dropbox_client
end