Class: Breadbox::DropboxClient
- Defined in:
- lib/breadbox/dropbox_client.rb
Instance Attribute Summary
Attributes inherited from Client
Instance Method Summary collapse
Methods inherited from Client
#client, #initialize, #root_path
Constructor Details
This class inherits a constructor from Breadbox::Client
Instance Method Details
#access_token ⇒ Object
6 7 8 |
# File 'lib/breadbox/dropbox_client.rb', line 6 def access_token configuration.dropbox_access_token end |
#upload(path: nil, file: nil) ⇒ Object
10 11 12 13 |
# File 'lib/breadbox/dropbox_client.rb', line 10 def upload(path: nil, file: nil) filepath = filepath_from_paths_and_file(root_path, path, file) client.put_file(filepath, file) end |