Class: Cloudpress::Dropbox::Client
- Inherits:
-
Object
- Object
- Cloudpress::Dropbox::Client
- Defined in:
- lib/cloudpress/dropbox/client.rb
Instance Method Summary collapse
- #connection ⇒ Object
-
#initialize(token) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(token) ⇒ Client
Returns a new instance of Client.
5 6 7 |
# File 'lib/cloudpress/dropbox/client.rb', line 5 def initialize(token) @token = token end |
Instance Method Details
#connection ⇒ Object
9 10 11 |
# File 'lib/cloudpress/dropbox/client.rb', line 9 def connection @connection ||= DropboxClient.new(@token) end |