Class: Fog::Storage::Dropbox::Real
- Inherits:
-
Object
- Object
- Fog::Storage::Dropbox::Real
- Defined in:
- lib/fog/dropbox/storage.rb
Instance Method Summary collapse
- #client ⇒ Object
-
#initialize(options = {}) ⇒ Real
constructor
Initialize connection to Dropbox.
Constructor Details
#initialize(options = {}) ⇒ Real
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
-
Storage object with connection to Dropbox.
30 31 32 33 34 35 |
# File 'lib/fog/dropbox/storage.rb', line 30 def initialize(={}) @dropbox_oauth2_access_token = [:dropbox_oauth2_access_token] @dropbox_client = DropboxClient.new(@dropbox_oauth2_access_token) end |
Instance Method Details
#client ⇒ Object
37 38 39 |
# File 'lib/fog/dropbox/storage.rb', line 37 def client @dropbox_client end |