Class: Cloudpress::Dropbox::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudpress/dropbox/client.rb

Instance Method Summary collapse

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

#connectionObject



9
10
11
# File 'lib/cloudpress/dropbox/client.rb', line 9

def connection
  @connection ||= DropboxClient.new(@token)
end